mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-11 08:23:26 +00:00
8288282: Zero-release build is broken after JDK-8279047 due to UseHeavyMonitors is read-only
Reviewed-by: dholmes, shade
This commit is contained in:
parent
0207d761f4
commit
4aede33fbf
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright 2009 Red Hat, Inc.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
@ -45,9 +45,10 @@ void VM_Version::initialize() {
|
||||
}
|
||||
FLAG_SET_DEFAULT(AllocatePrefetchDistance, 0);
|
||||
|
||||
// If lock diagnostics is needed, always call to runtime
|
||||
// Disable lock diagnostics for Zero
|
||||
if (DiagnoseSyncOnValueBasedClasses != 0) {
|
||||
FLAG_SET_DEFAULT(UseHeavyMonitors, true);
|
||||
warning("Lock diagnostics is not available for a Zero VM");
|
||||
FLAG_SET_DEFAULT(DiagnoseSyncOnValueBasedClasses, 0);
|
||||
}
|
||||
|
||||
if (UseAESIntrinsics) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,6 +31,7 @@ import java.util.stream.*;
|
||||
* @bug 8242263
|
||||
* @summary Exercise DiagnoseSyncOnValueBasedClasses diagnostic flag
|
||||
* @requires vm.flagless
|
||||
* @requires vm.flavor != "zero"
|
||||
* @library /test/lib
|
||||
* @run driver/timeout=180000 SyncOnValueBasedClassTest
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user