--- a/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp Wed Jan 16 07:01:04 2019 -0500
+++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.hpp Wed Jan 09 19:05:05 2019 -0500
@@ -727,7 +727,11 @@
// Supposed to be called regularly during a marking step as
// it checks a bunch of conditions that might cause the marking step
// to abort
- void regular_clock_call();
+ // Return true if the marking step should continue. Otherwise, return false to abort
+ bool regular_clock_call();
+
+ // Set abort flag if regular_clock_call() check fails
+ inline void abort_marking_if_regular_check_fail();
// Test whether obj might have already been passed over by the
// mark bitmap scan, and so needs to be pushed onto the mark stack.