< prev index next >

src/share/vm/gc/serial/defNewGeneration.cpp

Print this page
rev 10911 : 8154467: Cleanup initialization of GCPolicyCounters
Reviewed-by:

*** 562,572 **** return allocate(size, is_tlab); } void DefNewGeneration::adjust_desired_tenuring_threshold() { // Set the desired survivor size to half the real survivor space ! GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->collector_policy()->counters(); _tenuring_threshold = age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, gc_counters); } void DefNewGeneration::collect(bool full, --- 562,572 ---- return allocate(size, is_tlab); } void DefNewGeneration::adjust_desired_tenuring_threshold() { // Set the desired survivor size to half the real survivor space ! GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->gen_policy()->counters(); _tenuring_threshold = age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, gc_counters); } void DefNewGeneration::collect(bool full,
*** 943,953 **** Chunk::clean_chunk_pool(); } // update the generation and space performance counters update_counters(); ! gch->collector_policy()->counters()->update_counters(); } void DefNewGeneration::record_spaces_top() { assert(ZapUnusedHeapArea, "Not mangling unused space"); eden()->set_top_for_allocations(); --- 943,953 ---- Chunk::clean_chunk_pool(); } // update the generation and space performance counters update_counters(); ! gch->gen_policy()->counters()->update_counters(); } void DefNewGeneration::record_spaces_top() { assert(ZapUnusedHeapArea, "Not mangling unused space"); eden()->set_top_for_allocations();
< prev index next >