hotspot/src/share/vm/gc/g1/g1HotCardCache.cpp
changeset 46704 211b3f6b75ef
parent 40655 9f644073d3a0
child 46993 dd0f91c85ffc
--- a/hotspot/src/share/vm/gc/g1/g1HotCardCache.cpp	Fri Jul 21 16:37:01 2017 -0400
+++ b/hotspot/src/share/vm/gc/g1/g1HotCardCache.cpp	Fri Jul 21 21:01:59 2017 -0400
@@ -36,7 +36,7 @@
     _use_cache = true;
 
     _hot_cache_size = (size_t)1 << G1ConcRSLogCacheSize;
-    _hot_cache = ArrayAllocator<jbyte*, mtGC>::allocate(_hot_cache_size);
+    _hot_cache = ArrayAllocator<jbyte*>::allocate(_hot_cache_size, mtGC);
 
     reset_hot_cache_internal();
 
@@ -51,7 +51,7 @@
 G1HotCardCache::~G1HotCardCache() {
   if (default_use_cache()) {
     assert(_hot_cache != NULL, "Logic");
-    ArrayAllocator<jbyte*, mtGC>::free(_hot_cache, _hot_cache_size);
+    ArrayAllocator<jbyte*>::free(_hot_cache, _hot_cache_size);
     _hot_cache = NULL;
   }
 }