< prev index next >
src/share/vm/gc/g1/g1HotCardCache.cpp
Print this page
rev 13100 : imported patch 8182169-arrayallocator-should-take-memflag-parameter
@@ -34,11 +34,11 @@
void G1HotCardCache::initialize(G1RegionToSpaceMapper* card_counts_storage) {
if (default_use_cache()) {
_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();
// For refining the cards in the hot cache in parallel
_hot_cache_par_chunk_size = ClaimChunkSize;
@@ -49,11 +49,11 @@
}
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;
}
}
jbyte* G1HotCardCache::insert(jbyte* card_ptr) {
< prev index next >