@@ -3931,7 +3931,7 @@ void MacroAssembler::compiler_fast_unlock_object(Register oop, Register box, Reg
39313931
39323932 bind (not_recursive);
39333933
3934- NearLabel check_succ, set_eq_unlocked;
3934+ NearLabel set_eq_unlocked;
39353935
39363936 // Set owner to null.
39373937 // Release to satisfy the JMM
@@ -3941,14 +3941,10 @@ void MacroAssembler::compiler_fast_unlock_object(Register oop, Register box, Reg
39413941 // We need a full fence after clearing owner to avoid stranding.
39423942 z_fence ();
39433943
3944- // Check if the entry lists are empty (EntryList first - by convention).
3945- load_and_test_long (temp, Address (currentHeader, OM_OFFSET_NO_MONITOR_VALUE_TAG (EntryList)));
3946- z_brne (check_succ);
3947- load_and_test_long (temp, Address (currentHeader, OM_OFFSET_NO_MONITOR_VALUE_TAG (cxq)));
3944+ // Check if the entry_list is empty.
3945+ load_and_test_long (temp, Address (currentHeader, OM_OFFSET_NO_MONITOR_VALUE_TAG (entry_list)));
39483946 z_bre (done); // If so we are done.
39493947
3950- bind (check_succ);
3951-
39523948 // Check if there is a successor.
39533949 load_and_test_long (temp, Address (currentHeader, OM_OFFSET_NO_MONITOR_VALUE_TAG (succ)));
39543950 z_brne (set_eq_unlocked); // If so we are done.
@@ -6794,9 +6790,8 @@ void MacroAssembler::compiler_fast_unlock_lightweight_object(Register obj, Regis
67946790
67956791 const ByteSize monitor_tag = in_ByteSize (UseObjectMonitorTable ? 0 : checked_cast<int >(markWord::monitor_value));
67966792 const Address recursions_address{monitor, ObjectMonitor::recursions_offset () - monitor_tag};
6797- const Address cxq_address{monitor, ObjectMonitor::cxq_offset () - monitor_tag};
67986793 const Address succ_address{monitor, ObjectMonitor::succ_offset () - monitor_tag};
6799- const Address EntryList_address {monitor, ObjectMonitor::EntryList_offset () - monitor_tag};
6794+ const Address entry_list_address {monitor, ObjectMonitor::entry_list_offset () - monitor_tag};
68006795 const Address owner_address{monitor, ObjectMonitor::owner_offset () - monitor_tag};
68016796
68026797 NearLabel not_recursive;
@@ -6813,7 +6808,7 @@ void MacroAssembler::compiler_fast_unlock_lightweight_object(Register obj, Regis
68136808
68146809 bind (not_recursive);
68156810
6816- NearLabel check_succ, set_eq_unlocked;
6811+ NearLabel set_eq_unlocked;
68176812
68186813 // Set owner to null.
68196814 // Release to satisfy the JMM
@@ -6823,14 +6818,10 @@ void MacroAssembler::compiler_fast_unlock_lightweight_object(Register obj, Regis
68236818 // We need a full fence after clearing owner to avoid stranding.
68246819 z_fence ();
68256820
6826- // Check if the entry lists are empty (EntryList first - by convention).
6827- load_and_test_long (tmp2, EntryList_address);
6828- z_brne (check_succ);
6829- load_and_test_long (tmp2, cxq_address);
6821+ // Check if the entry_list is empty.
6822+ load_and_test_long (tmp2, entry_list_address);
68306823 z_bre (unlocked); // If so we are done.
68316824
6832- bind (check_succ);
6833-
68346825 // Check if there is a successor.
68356826 load_and_test_long (tmp2, succ_address);
68366827 z_brne (set_eq_unlocked); // If so we are done.
0 commit comments