8156660: JDK-8150393 does not set _scan_in_progress properly
authortschatzl
Tue, 10 May 2016 16:40:04 +0200
changeset 38268 222eea004d99
parent 38265 087fd62badde
child 38269 d18cab031e64
8156660: JDK-8150393 does not set _scan_in_progress properly Reviewed-by: ehelin, mgerdin
hotspot/src/share/vm/gc/g1/g1ConcurrentMark.cpp
--- a/hotspot/src/share/vm/gc/g1/g1ConcurrentMark.cpp	Tue May 10 11:50:45 2016 +0000
+++ b/hotspot/src/share/vm/gc/g1/g1ConcurrentMark.cpp	Tue May 10 16:40:04 2016 +0200
@@ -273,7 +273,7 @@
 
   // Currently, only survivors can be root regions.
   _claimed_survivor_index = 0;
-  _scan_in_progress = true;
+  _scan_in_progress = _survivors->regions()->is_nonempty();
   _should_abort = false;
 }