Withdrawn: 8344880: AArch64: Add compile time check for class offsets

duke duke at openjdk.org
Sat Feb 8 16:03:19 UTC 2025


On Fri, 6 Dec 2024 23:57:41 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

> [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.

This pull request has been closed without being integrated.

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

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


More information about the hotspot-dev mailing list