--- old/src/hotspot/share/runtime/biasedLocking.hpp 2019-08-23 20:43:20.904868806 +0000 +++ new/src/hotspot/share/runtime/biasedLocking.hpp 2019-08-23 20:43:19.225830051 +0000 @@ -168,13 +168,12 @@ enum Condition { NOT_BIASED = 1, BIAS_REVOKED = 2, - BIAS_REVOKED_AND_REBIASED = 3, - NOT_REVOKED = 4 + NOT_REVOKED = 3 }; private: - static Condition single_revoke_at_safepoint(oop obj, bool allow_rebias, bool is_bulk, JavaThread* requester, JavaThread** biaser); - static Condition bulk_revoke_or_rebias_at_safepoint(oop o, bool bulk_rebias, bool attempt_rebias, JavaThread* requester); + static void single_revoke_at_safepoint(oop obj, bool is_bulk, JavaThread* requester, JavaThread** biaser); + static void bulk_revoke_at_safepoint(oop o, bool bulk_rebias, JavaThread* requester); static Condition single_revoke_with_handshake(Handle obj, JavaThread *requester, JavaThread *biaser); static void walk_stack_and_revoke(oop obj, JavaThread* biased_locker); @@ -189,12 +188,13 @@ static bool enabled(); // This should be called by JavaThreads to revoke the bias of an object - static Condition revoke_and_rebias(Handle obj, bool attempt_rebias, TRAPS); + static void revoke(Handle obj, TRAPS); - // These do not allow rebiasing; they are used by deoptimization to - // ensure that monitors on the stack can be migrated - static void revoke(GrowableArray* objs, JavaThread *biaser); static void revoke_at_safepoint(Handle obj); + + // These are used by deoptimization to ensure that monitors on the stack + // can be migrated + static void revoke(GrowableArray* objs, JavaThread *biaser); static void revoke_at_safepoint(GrowableArray* objs); static void print_counters() { _counters.print(); }