--- old/src/hotspot/share/runtime/thread.hpp 2019-07-22 10:59:11.807171248 -0400 +++ new/src/hotspot/share/runtime/thread.hpp 2019-07-22 10:59:11.579171256 -0400 @@ -375,18 +375,14 @@ // GC points in the VM can happen because of allocation, invoking a VM operation, or blocking on // mutex, or blocking on an object synchronizer (Java locking). // If !allow_safepoint(), then an assertion failure will happen in any of the above cases - // If !allow_allocation(), then an assertion failure will happen during allocation - // (Hence, !allow_safepoint() => !allow_allocation()). // - // The two classes NoSafepointVerifier and No_Allocation_Verifier are used to set these counters. + // The class NoSafepointVerifier is used to set these counters. // NOT_PRODUCT(int _allow_safepoint_count;) // If 0, thread allow a safepoint to happen - debug_only(int _allow_allocation_count;) // If 0, the thread is allowed to allocate oops. // Used by SkipGCALot class. NOT_PRODUCT(bool _skip_gcalot;) // Should we elide gc-a-lot? - friend class NoAllocVerifier; friend class NoSafepointVerifier; friend class PauseNoSafepointVerifier; friend class GCLocker; @@ -754,7 +750,6 @@ bool owns_locks_but_compiled_lock() const; // Deadlock detection - bool allow_allocation() { return _allow_allocation_count == 0; } ResourceMark* current_resource_mark() { return _current_resource_mark; } void set_current_resource_mark(ResourceMark* rm) { _current_resource_mark = rm; } #endif