RFR: 8254693: Add Panama feature to pass heap segments to native code [v8]
Jorn Vernee
jvernee at openjdk.org
Fri Oct 20 08:02:46 UTC 2023
On Fri, 20 Oct 2023 07:55:45 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) + 2 receiver method handle + NativeEntryPoint, which gives 258. Ok, I'll find out what the limit is and use that
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16201#issuecomment-1772264403
More information about the core-libs-dev
mailing list