--- 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);