RFR: 8254693: Add Panama feature to pass heap segments to native code [v8]
Martin Doerr
mdoerr at openjdk.org
Fri Oct 20 08:43:39 UTC 2023
On Fri, 20 Oct 2023 07:59:25 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> > Why is 84 the maximum? That would result in 170 Java parameters at most, which is well within the 255 limit imposed by the VM spec.
>
> Ah, right, longs take up 2 slots. So, we get 84*3 = 252 + 4 (target address & return buffer) + receiver method handle + NativeEntryPoint, which gives 258. Ok, I'll find out what the limit is and use that.
>
> P.S. it's 83
Thanks! I should have mentioned that 84 is the limit for linux PPC64le. 83 should work for all platforms.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16201#issuecomment-1772321142
More information about the core-libs-dev
mailing list