RFR: 8344352: 32-bit builds crash after JDK-8305895

Aleksey Shipilev shade at openjdk.org
Mon Nov 18 10:21:54 UTC 2024


The underlying reason is that newly added `ObjLayout::initialize` is set up in `LP64` block, so 32-bit platforms miss it. I moved the initialization closer to VM init sequence, as it _is_ the essential part of VM init, not just argument parsing. This is the same thing I did in my POC patch in [JDK-8343648](https://bugs.openjdk.org/browse/JDK-8343648).

Additional testing:
 - [x] Linux x86_32 fastdebug cross-build (now able to run simple things)
 - [x] Linux arm32 fastdebug cross-build (now able to run simple things)

Both builds are still broken at build-time CDS creation steps due to CDS issues, but they do not fail with ObjLayout bug anymore.

-------------

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/22196/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22196&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8344352
  Stats: 4 lines in 2 files changed: 3 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22196.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22196/head:pull/22196

PR: https://git.openjdk.org/jdk/pull/22196


More information about the hotspot-runtime-dev mailing list