< prev index next >
src/hotspot/share/runtime/biasedLocking.cpp
Print this page
rev 56101 : 8227745: Enable Escape Analysis for better performance when debugging
Reviewed-by: ???
@@ -667,11 +667,14 @@
// Caller should have instantiated a ResourceMark object before calling this method
void BiasedLocking::walk_stack_and_revoke(oop obj, JavaThread* biased_locker) {
assert(!SafepointSynchronize::is_at_safepoint() || !ThreadLocalHandshakes,
"if ThreadLocalHandshakes is enabled this should always be executed outside safepoints");
- assert(Thread::current() == biased_locker || Thread::current()->is_VM_thread(), "wrong thread");
+ assert(Thread::current() == biased_locker ||
+ Thread::current()->is_VM_thread() ||
+ biased_locker->is_ea_obj_deopt_suspend(),
+ "wrong thread");
markWord mark = obj->mark();
assert(mark.biased_locker() == biased_locker &&
obj->klass()->prototype_header().bias_epoch() == mark.bias_epoch(), "invariant");
< prev index next >