hotspot/src/cpu/x86/vm/macroAssembler_x86.hpp
changeset 22910 88c3369b5967
parent 20702 bbe0fcde6e13
child 23491 f690330b10b9
--- a/hotspot/src/cpu/x86/vm/macroAssembler_x86.hpp	Fri Feb 21 08:09:15 2014 -0800
+++ b/hotspot/src/cpu/x86/vm/macroAssembler_x86.hpp	Mon Feb 24 15:12:26 2014 -0800
@@ -651,7 +651,12 @@
                            Label& done, Label* slow_case = NULL,
                            BiasedLockingCounters* counters = NULL);
   void biased_locking_exit (Register obj_reg, Register temp_reg, Label& done);
-
+#ifdef COMPILER2
+  // Code used by cmpFastLock and cmpFastUnlock mach instructions in .ad file.
+  // See full desription in macroAssembler_x86.cpp.
+  void fast_lock(Register obj, Register box, Register tmp, Register scr, BiasedLockingCounters* counters);
+  void fast_unlock(Register obj, Register box, Register tmp);
+#endif
 
   Condition negate_condition(Condition cond);