< prev index next >

src/share/vm/gc/g1/g1YoungRemSetSamplingThread.cpp

Print this page
rev 11545 : [mq]: 8159978-collection-set-as-array
rev 11546 : [mq]: 8159978-erikh-review

*** 105,119 **** void G1YoungRemSetSamplingThread::sample_young_list_rs_lengths() { SuspendibleThreadSetJoiner sts; G1CollectedHeap* g1h = G1CollectedHeap::heap(); G1Policy* g1p = g1h->g1_policy(); - G1CollectionSet* g1cs = g1h->collection_set(); ! if (G1CollectedHeap::heap()->g1_policy()->adaptive_young_list_length()) { G1YoungRemSetSamplingClosure cl(&sts); ! g1cs->iterate(&cl); if (cl.complete()) { g1p->revise_young_list_target_length_if_necessary(cl.sampled_rs_lengths()); } } --- 105,120 ---- void G1YoungRemSetSamplingThread::sample_young_list_rs_lengths() { SuspendibleThreadSetJoiner sts; G1CollectedHeap* g1h = G1CollectedHeap::heap(); G1Policy* g1p = g1h->g1_policy(); ! if (g1p->adaptive_young_list_length()) { G1YoungRemSetSamplingClosure cl(&sts); ! ! G1CollectionSet* g1cs = g1h->collection_set(); ! g1cs->iterate(&cl, true); if (cl.complete()) { g1p->revise_young_list_target_length_if_necessary(cl.sampled_rs_lengths()); } }
< prev index next >