Skip to content

Commit 71a64a1

Browse files
jckingThomas Schatzl
authored and
Thomas Schatzl
committedJan 2, 2023
8299399: Remove metaprogramming/isArray.hpp
Reviewed-by: kbarrett, iwalulya, tschatzl
1 parent 532ccdb commit 71a64a1

File tree

3 files changed

+3
-108
lines changed

3 files changed

+3
-108
lines changed
 

‎src/hotspot/share/gc/z/zSafeDelete.inline.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
#include "gc/z/zSafeDelete.hpp"
2828

2929
#include "gc/z/zArray.inline.hpp"
30-
#include "metaprogramming/isArray.hpp"
3130
#include "utilities/debug.hpp"
3231

32+
#include <type_traits>
33+
3334
template <typename T>
3435
ZSafeDeleteImpl<T>::ZSafeDeleteImpl(ZLock* lock) :
3536
_lock(lock),
@@ -49,7 +50,7 @@ bool ZSafeDeleteImpl<T>::deferred_delete(ItemT* item) {
4950

5051
template <typename T>
5152
void ZSafeDeleteImpl<T>::immediate_delete(ItemT* item) {
52-
if (IsArray<T>::value) {
53+
if (std::is_array<T>::value) {
5354
delete [] item;
5455
} else {
5556
delete item;

‎src/hotspot/share/metaprogramming/isArray.hpp

-35
This file was deleted.

‎test/hotspot/gtest/metaprogramming/test_isArray.cpp

-71
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.