RFR: 8348556: Inlining fails earlier for MemorySegment::reinterpret [v7]
Per Minborg
pminborg at openjdk.org
Tue Apr 8 12:24:41 UTC 2025
> This PR proposes to add some `@ForceInline` annotations in the `Module` class in order to assist inlining of FFM var/method handles.
>
> There are also some changes in other classes which, if implemented, can take us three additional levels of inlining. I drew a line there. There is a tradeoff with adding `@ForceInline` and just trying to get as deep as possible for a specific use case is probably not the best idea.
>
> Updating the `j.l.Object` constructor is crucial for the higher depths.
>
> Tested and passed tier1-3
Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
Reintroduce Object changes
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23460/files
- new: https://git.openjdk.org/jdk/pull/23460/files/401d9d4f..f715b2b4
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23460&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23460&range=05-06
Stats: 5 lines in 2 files changed: 2 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/23460.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23460/head:pull/23460
PR: https://git.openjdk.org/jdk/pull/23460
More information about the hotspot-compiler-dev
mailing list