< prev index next >
src/share/vm/gc/g1/g1FromCardCache.cpp
Print this page
rev 13257 : [mq]: 8184346-cleanup-g1cmbitmap
rev 13258 : [mq]: 8184346-rkennke-review
rev 13260 : imported patch 8184452-fcc-bounds-check
*** 29,44 ****
--- 29,50 ----
#include "utilities/debug.hpp"
int** G1FromCardCache::_cache = NULL;
uint G1FromCardCache::_max_regions = 0;
size_t G1FromCardCache::_static_mem_size = 0;
+ #ifdef ASSERT
+ uint G1FromCardCache::_max_workers = 0;
+ #endif
void G1FromCardCache::initialize(uint num_par_rem_sets, uint max_num_regions) {
guarantee(max_num_regions > 0, "Heap size must be valid");
guarantee(_cache == NULL, "Should not call this multiple times");
_max_regions = max_num_regions;
+ #ifdef ASSERT
+ _max_workers = num_par_rem_sets;
+ #endif
_cache = Padded2DArray<int, mtGC>::create_unfreeable(_max_regions,
num_par_rem_sets,
&_static_mem_size);
invalidate(0, _max_regions);
< prev index next >