7022999: Can't build with FORCE_TIERED=0
Summary: Put UseFastLocking test under #ifdef COMPILER1
Reviewed-by: kvn, phh, never, dcubed
--- a/hotspot/src/share/vm/runtime/arguments.cpp Wed Mar 02 16:21:47 2011 -0800
+++ b/hotspot/src/share/vm/runtime/arguments.cpp Thu Mar 03 19:51:36 2011 -0500
@@ -3114,7 +3114,11 @@
// Turn off biased locking for locking debug mode flags,
// which are subtlely different from each other but neither works with
// biased locking.
- if (!UseFastLocking || UseHeavyMonitors) {
+ if (UseHeavyMonitors
+#ifdef COMPILER1
+ || !UseFastLocking
+#endif // COMPILER1
+ ) {
if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) {
// flag set to true on command line; warn the user that they
// can't enable biased locking here