8156660: JDK-8150393 does not set _scan_in_progress properly

Reviewed-by: ehelin, mgerdin
This commit is contained in:
Thomas Schatzl 2016-05-10 16:40:04 +02:00
parent ad35e5189a
commit 029fbccccb

View File

@ -273,7 +273,7 @@ void G1CMRootRegions::prepare_for_scan() {
// 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;
}