RFR: 8258032: Reconsider LEAF entry restrictions

Coleen Phillimore coleenp at openjdk.java.net
Tue Jan 5 14:43:58 UTC 2021


On Fri, 18 Dec 2020 19:38:09 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change allows JRT_LEAF functions to create Handles because it doesn't need them but some code inside the VM needs Handles.  There's a NoSafepointVerifier in JRT_LEAF functions.
> The JNI_LEAF and JVM_LEAF functions have NoHandleMark (so you can't create handles) but the transition ThreadInVMfromNative will reenable the HandleMarks, so that all this code doesn't have to do it itself.
> Tested with tier1-6.

Ron, thanks for looking at this and for this request.

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

PR: https://git.openjdk.java.net/jdk/pull/1846


More information about the serviceability-dev mailing list