< prev index next >

src/hotspot/share/gc/g1/heapRegion.cpp

Print this page

        

*** 47,57 **** #include "runtime/orderAccess.hpp" #include "utilities/growableArray.hpp" int HeapRegion::LogOfHRGrainBytes = 0; int HeapRegion::LogOfHRGrainWords = 0; - int HeapRegion::LogCardsPerRegion = 0; size_t HeapRegion::GrainBytes = 0; size_t HeapRegion::GrainWords = 0; size_t HeapRegion::CardsPerRegion = 0; size_t HeapRegion::max_region_size() { --- 47,56 ----
*** 104,115 **** guarantee((size_t) 1 << LogOfHRGrainWords == GrainWords, "sanity"); guarantee(CardsPerRegion == 0, "we should only set it once"); CardsPerRegion = GrainBytes >> G1CardTable::card_shift; - LogCardsPerRegion = log2_long((jlong) CardsPerRegion); - if (G1HeapRegionSize != GrainBytes) { FLAG_SET_ERGO(G1HeapRegionSize, GrainBytes); } } --- 103,112 ----
*** 117,127 **** assert(_humongous_start_region == NULL, "we should have already filtered out humongous regions"); assert(!in_collection_set(), "Should not clear heap region %u in the collection set", hrm_index()); ! clear_young_index_in_cset(); clear_index_in_opt_cset(); uninstall_surv_rate_group(); set_free(); reset_pre_dummy_top(); --- 114,124 ---- assert(_humongous_start_region == NULL, "we should have already filtered out humongous regions"); assert(!in_collection_set(), "Should not clear heap region %u in the collection set", hrm_index()); ! set_young_index_in_cset(-1); clear_index_in_opt_cset(); uninstall_surv_rate_group(); set_free(); reset_pre_dummy_top();
< prev index next >