RFR: 8344880: AArch64: Add compile time check for class offsets
Chad Rakoczy
duke at openjdk.org
Thu Dec 12 18:52:09 UTC 2024
[JDK-8344880](https://bugs.openjdk.org/browse/JDK-8344880)
Adds compile time checks for str/ldr instructions to verify that the immediate offset will fit. This adds static_assert for constant offsets that are checked at compile time. The macro offset_of is not constexpr so instead the class size is checked. If the size of a class fits into a memory instructions then any offset in it will fit.
-------------
Commit messages:
- Fix whitespace
- Add compile time check for ldr/str
Changes: https://git.openjdk.org/jdk/pull/22623/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22623&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8344880
Stats: 345 lines in 24 files changed: 32 ins; 1 del; 312 mod
Patch: https://git.openjdk.org/jdk/pull/22623.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22623/head:pull/22623
PR: https://git.openjdk.org/jdk/pull/22623
More information about the shenandoah-dev
mailing list