On Sun, 16 Mar 2025 07:51:55 GMT, Alan Bateman <al...@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