[foreign-memaccess] RFR: JDK-8242495: Restructure implementation of memory segments
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Apr 10 16:53:34 UTC 2020
On Fri, 10 Apr 2020 16:41:45 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Just tried this - makes benchmarks revert to old behavior - roughly 10x slower. Worth a try, but I think using
>> reflection probably makes thing less transparent to the JIT.
>
> Interesting, I thought it might be the explicit casts introduced in the MH machinery of lambdas, and since everything
> is final and stable (?) the casts usually help the JIT, if so then there is clearly more going on with the MH machinery.
that's true, although I'd expect that with MH the Class constant is stored in some separate spinned class - e.g. it is
a true constant, not a final field load?
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/109
More information about the panama-dev
mailing list