RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v6]

Per Minborg pminborg at openjdk.org
Fri Mar 21 16:16:25 UTC 2025


On Sun, 16 Mar 2025 07:51:55 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> I'm surprised to see `@ForceInline` in the offset query functions in `Unsafe`. Those are not on any fast path I'm aware of. What use case does this annotation address? If none, consider deleting; it will be a future maintenance puzzle. Or at least document in a comment why a slow path function needs such an annotation.

Yeah, it seems a bit odd. If we want to change this, we should do that under a separate issue. The new `ensureNotTrusted()` method carries `@ForceInline` because it is called from methods that also have the annotation.

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

PR Comment: https://git.openjdk.org/jdk/pull/23972#issuecomment-2743837331


More information about the hotspot-dev mailing list