8178542: G1: VM hangs during shutdown due to mark stack overflow
Summary: Removed not needed call to clear_has_overflown() to avoid inconsistent state
Reviewed-by: kbarrett, sangheki
--- a/hotspot/src/share/vm/gc/g1/g1ConcurrentMark.cpp Fri Apr 28 09:50:47 2017 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1ConcurrentMark.cpp Mon May 01 10:50:38 2017 -0400
@@ -923,8 +923,6 @@
double end_vtime_sec = os::elapsedVTime();
double elapsed_vtime_sec = end_vtime_sec - start_vtime_sec;
- _cm->clear_has_overflown();
-
_cm->do_yield_check();
jlong sleep_time_ms;