RFR: JDK-8286666: JEP 429: Implementation of Scoped Values (Incubator)

Andrew Haley aph at openjdk.org
Tue Nov 15 14:20:48 UTC 2022


On Thu, 10 Nov 2022 17:42:38 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> src/hotspot/share/prims/jvm.cpp line 1410:
>> 
>>> 1408:       loc = 3;
>>> 1409:     } else if (method == resolver.thread_run_method) {
>>> 1410:       loc = 2;
>> 
>> This depends on how javac numbers locals, right?  It seems a bit fragile.  This is one of the reasons why doPrivileged uses the helper method executePrivileged, so the locals are arguments, giving them predictable offsets.
>
> Ah, good point. I'll have a look at doing that.

Done.

-------------

PR: https://git.openjdk.org/jdk/pull/10952


More information about the security-dev mailing list