8196865: G1 log for active workers is wrong
authorlkorinth
Fri, 23 Mar 2018 16:25:47 +0100
changeset 49599 6b9be5bfa167
parent 49598 566f1621a4a0
child 49600 d7c83c8e4e65
8196865: G1 log for active workers is wrong Reviewed-by: tschatzl, sjohanss
src/hotspot/share/gc/g1/g1CollectedHeap.cpp
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Mon Mar 26 10:03:31 2018 +0200
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Fri Mar 23 16:25:47 2018 +0100
@@ -2897,7 +2897,7 @@
     uint active_workers = AdaptiveSizePolicy::calc_active_workers(workers()->total_workers(),
                                                                   workers()->active_workers(),
                                                                   Threads::number_of_non_daemon_threads());
-    workers()->update_active_workers(active_workers);
+    active_workers = workers()->update_active_workers(active_workers);
     log_info(gc,task)("Using %u workers of %u for evacuation", active_workers, workers()->total_workers());
 
     TraceCollectorStats tcs(g1mm()->incremental_collection_counters());