mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8229844: Remove attempt_rebias parameter from revoke_and_rebias()
Removed attempt_rebias parameter and merged fast_enter() and slow_enter() into enter() Reviewed-by: dholmes, rehn, coleenp, dcubed
This commit is contained in:
parent
702199983a
commit
85dbabe345
14 changed files with 125 additions and 249 deletions
|
@ -394,17 +394,7 @@ JRT_ENTRY_NO_ASYNC(void, JVMCIRuntime::monitorenter(JavaThread* thread, oopDesc*
|
|||
}
|
||||
Handle h_obj(thread, obj);
|
||||
assert(oopDesc::is_oop(h_obj()), "must be NULL or an object");
|
||||
if (UseBiasedLocking) {
|
||||
// Retry fast entry if bias is revoked to avoid unnecessary inflation
|
||||
ObjectSynchronizer::fast_enter(h_obj, lock, true, CHECK);
|
||||
} else {
|
||||
if (JVMCIUseFastLocking) {
|
||||
// When using fast locking, the compiled code has already tried the fast case
|
||||
ObjectSynchronizer::slow_enter(h_obj, lock, THREAD);
|
||||
} else {
|
||||
ObjectSynchronizer::fast_enter(h_obj, lock, false, THREAD);
|
||||
}
|
||||
}
|
||||
ObjectSynchronizer::enter(h_obj, lock, THREAD);
|
||||
TRACE_jvmci_3("%s: exiting locking slow with obj=" INTPTR_FORMAT, thread->name(), p2i(obj));
|
||||
JRT_END
|
||||
|
||||
|
@ -426,12 +416,7 @@ JRT_LEAF(void, JVMCIRuntime::monitorexit(JavaThread* thread, oopDesc* obj, Basic
|
|||
}
|
||||
#endif
|
||||
|
||||
if (JVMCIUseFastLocking) {
|
||||
// When using fast locking, the compiled code has already tried the fast case
|
||||
ObjectSynchronizer::slow_exit(obj, lock, THREAD);
|
||||
} else {
|
||||
ObjectSynchronizer::fast_exit(obj, lock, THREAD);
|
||||
}
|
||||
ObjectSynchronizer::exit(obj, lock, THREAD);
|
||||
IF_TRACE_jvmci_3 {
|
||||
char type[O_BUFLEN];
|
||||
obj->klass()->name()->as_C_string(type, O_BUFLEN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue