src/share/vm/memory/gcLocker.hpp

Print this page

        

*** 90,99 **** --- 90,100 ---- 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