JDK-8259560 : Zero m68k: "static assertion failed: align" after JDK-8252049
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16,17
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-11
  • Updated: 2022-02-06
  • Resolved: 2021-01-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 16 JDK 17
16 b32Fixed 17Fixed
Related Reports
Relates :  
Description
Debian folks report that Zero m68k (and seems only that arch) fails the static assert added by JDK-8252049. It affects at least JDK 16, but would affect more releases once JDK-8252049 is backported.

/<<PKGBUILDDIR>>/src/hotspot/share/oops/methodData.hpp: In constructor 'MethodData::CompilerCounters::CompilerCounters()':
/<<PKGBUILDDIR>>/src/hotspot/share/oops/methodData.hpp:1987:55: error: static assertion failed: align
 1987 |       static_assert(sizeof(_trap_hist) % HeapWordSize == 0, "align");
      |                     
Comments
Changeset: a99df45b Author: Aleksey Shipilev <shade@openjdk.org> Date: 2021-01-13 08:49:12 +0000 URL: https://git.openjdk.java.net/jdk16/commit/a99df45b
13-01-2021

It builds fine now with the current PR.
12-01-2021

Added that place too, see updated PR.
11-01-2021

There is a second instance where it fails after patching the first instance: === Output from failing command(s) repeated here === * For target hotspot_variant-zero_libjvm_objs_ciMethodData.o: /<<PKGBUILDDIR>>/src/hotspot/share/ci/ciMethodData.cpp: In member function 'void ciMethodData::load_data()': /<<PKGBUILDDIR>>/src/hotspot/share/ci/ciMethodData.cpp:205:46: error: static assertion failed: align 205 | static_assert(sizeof(_orig) % HeapWordSize == 0, "align"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ * All command lines available in /<<PKGBUILDDIR>>/build/make-support/failure-logs. === End of repeated output ===
11-01-2021

ILW = Build failure due to static assert, debug build on zero m64k only, no workaround but disable assert = HMM = P2
11-01-2021