JDK-8288282 : Zero-release build is broken after JDK-8279047 due to UseHeavyMonitors is read-only
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-11
  • Updated: 2022-06-13
  • Resolved: 2022-06-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 masterFixed
Related Reports
Relates :  
Relates :  
Description
```
Updating support/src.zip
In file included from /root/df/jdk/src/hotspot/cpu/zero/vm_version_zero.hpp:30,
                 from /root/df/jdk/src/hotspot/share/runtime/vm_version.hpp:30,
                 from /root/df/jdk/src/hotspot/share/runtime/orderAccess.hpp:29,
                 from /root/df/jdk/src/hotspot/share/runtime/atomic.hpp:37,
                 from /root/df/jdk/src/hotspot/share/utilities/bitMap.hpp:29,
                 from /root/df/jdk/src/hotspot/share/memory/iterator.hpp:31,
                 from /root/df/jdk/src/hotspot/share/oops/oop.hpp:28,
                 from /root/df/jdk/src/hotspot/share/runtime/handles.hpp:29,
                 from /root/df/jdk/src/hotspot/share/code/oopRecorder.hpp:28,
                 from /root/df/jdk/src/hotspot/share/asm/codeBuffer.hpp:28,
                 from /root/df/jdk/src/hotspot/share/asm/assembler.hpp:28,
                 from /root/df/jdk/src/hotspot/share/asm/assembler.inline.hpp:28,
                 from /root/df/jdk/src/hotspot/cpu/zero/vm_version_zero.cpp:27:
/root/df/jdk/src/hotspot/cpu/zero/vm_version_zero.cpp: In static member function 'static void VM_Version::initialize()':
/root/df/jdk/src/hotspot/share/runtime/globals_extension.hpp:75:47: error: assignment of read-only location 'UseHeavyMonitors'
   75 | #define FLAG_SET_DEFAULT(name, value) ((name) = (value))
      |                                        ~~~~~~~^~~~~~~~~
/root/df/jdk/src/hotspot/cpu/zero/vm_version_zero.cpp:50:5: note: in expansion of macro 'FLAG_SET_DEFAULT'
   50 |     FLAG_SET_DEFAULT(UseHeavyMonitors, true);
      |     ^~~~~~~~~~~~~~~~
gmake[3]: *** [/root/df/jdk/build/linux-x86_64-zero-release/hotspot/variant-zero/libjvm/objs/vm_version_zero.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [hotspot-zero-libs] Error 1
gmake[2]: *** Waiting for unfinished jobs....

ERROR: Build failed for target 'images' in configuration 'linux-x86_64-zero-release' (exit code 2)
Stopping sjavac server
```
Comments
Changeset: 4aede33f Author: Jie Fu <jiefu@openjdk.org> Date: 2022-06-13 14:36:57 +0000 URL: https://git.openjdk.org/jdk/commit/4aede33fbf940290bb86ac1af1e833ce4d709100
13-06-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9138 Date: 2022-06-11 15:08:38 +0000
11-06-2022