--- a/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp Tue Aug 06 15:03:48 2019 -0400
+++ b/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp Wed Aug 07 10:29:07 2019 +0200
@@ -110,7 +110,7 @@
}
while (!should_terminate()) {
- sample_young_list_rs_lengths();
+ sample_young_list_rs_length();
if (os::supports_vtime()) {
_vtime_accum = (os::elapsedVTime() - vtime_start);
@@ -132,14 +132,14 @@
class G1YoungRemSetSamplingClosure : public HeapRegionClosure {
SuspendibleThreadSetJoiner* _sts;
size_t _regions_visited;
- size_t _sampled_rs_lengths;
+ size_t _sampled_rs_length;
public:
G1YoungRemSetSamplingClosure(SuspendibleThreadSetJoiner* sts) :
- HeapRegionClosure(), _sts(sts), _regions_visited(0), _sampled_rs_lengths(0) { }
+ HeapRegionClosure(), _sts(sts), _regions_visited(0), _sampled_rs_length(0) { }
virtual bool do_heap_region(HeapRegion* r) {
size_t rs_length = r->rem_set()->occupied();
- _sampled_rs_lengths += rs_length;
+ _sampled_rs_length += rs_length;
// Update the collection set policy information for this region
G1CollectedHeap::heap()->collection_set()->update_young_region_prediction(r, rs_length);
@@ -158,10 +158,10 @@
return false;
}
- size_t sampled_rs_lengths() const { return _sampled_rs_lengths; }
+ size_t sampled_rs_length() const { return _sampled_rs_length; }
};
-void G1YoungRemSetSamplingThread::sample_young_list_rs_lengths() {
+void G1YoungRemSetSamplingThread::sample_young_list_rs_length() {
SuspendibleThreadSetJoiner sts;
G1CollectedHeap* g1h = G1CollectedHeap::heap();
G1Policy* policy = g1h->policy();
@@ -173,7 +173,7 @@
g1cs->iterate(&cl);
if (cl.is_complete()) {
- policy->revise_young_list_target_length_if_necessary(cl.sampled_rs_lengths());
+ policy->revise_young_list_target_length_if_necessary(cl.sampled_rs_length());
}
}
}