--- old/src/share/vm/gc/g1/g1RemSet.hpp 2015-12-21 12:23:45.310806514 +0100 +++ new/src/share/vm/gc/g1/g1RemSet.hpp 2015-12-21 12:23:45.218803785 +0100 @@ -75,6 +75,16 @@ G1ParPushHeapRSClosure** _cset_rs_update_cl; public: + // Gives an approximation on how many threads can be expected to add records to + // a remembered set in parallel. This can be used for sizing data structures to + // decrease performance losses due to data structure sharing. + // Examples for quantities that influence this value are the maximum number of + // mutator threads, maximum number of concurrent refinement or GC threads. + static uint num_par_rem_sets(); + + // Initialize data that depends on that the heap size is known. + static void initialize(uint max_regions); + // This is called to reset dual hash tables after the gc pause // is finished and the initial hash table is no longer being // scanned.