< prev index next >
src/hotspot/share/gc/shared/memAllocator.cpp
Print this page
@@ -171,15 +171,12 @@
// OutOfMemoryError? Don't allow pending exceptions.
// This is a VM policy failure, so how do we exhaustively test it?
assert(!_thread->has_pending_exception(),
"shouldn't be allocating with pending exception");
if (StrictSafepointChecks) {
- assert(_thread->allow_allocation(),
- "Allocation done by thread for which allocation is blocked "
- "by No_Allocation_Verifier!");
// Allocation of an oop can always invoke a safepoint,
- // hence, the true argument
+ // hence, the true argument.
_thread->check_for_valid_safepoint_state(true);
}
}
#endif
< prev index next >