mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7022999: Can't build with FORCE_TIERED=0
Put UseFastLocking test under #ifdef COMPILER1 Reviewed-by: kvn, phh, never, dcubed
This commit is contained in:
parent
0e033bed54
commit
c3805bc224
1 changed files with 5 additions and 1 deletions
|
@ -3114,7 +3114,11 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue