src/share/vm/memory/gcLocker.hpp

Print this page

        

@@ -90,10 +90,11 @@
   static bool is_active() {
     assert(SafepointSynchronize::is_at_safepoint(), "only read at safepoint");
     return is_active_internal();
   }
   static bool needs_gc()       { return _needs_gc;                        }
+  static bool fail_on_gc() { return _lock_count > 0; }
 
   // Shorthand
   static bool is_active_and_needs_gc() {
     // Use is_active_internal since _needs_gc can change from true to
     // false outside of a safepoint, triggering the assert in