changeset 11726:b1efbedd2780

8156660: JDK-8150393 does not set _scan_in_progress properly Reviewed-by: ehelin, mgerdin
author tschatzl
date Tue, 10 May 2016 16:40:04 +0200
parents 62e86ede0bf0
children 9a41c4ac76c4
files src/share/vm/gc/g1/g1ConcurrentMark.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1ConcurrentMark.cpp	Tue May 10 11:50:45 2016 +0000
+++ b/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;
 }