Per JEP 411, AccessController is deprecated for removal, so it doesn't make sense to look further into this Enhancement.
28-07-2021
This could be done with the help of LiveStackFrameInfo.getLocals, but currently LiveStackFrame and LiveStackFrameInfo are package-private to java.lang. I wonder if classes like LiveStackFrame and LiveStackFrameInfo should be moved to jdk.internal instead. Or we could put the Java implementation of getStackAccessControlContext in java.lang and access it from java.security through SharedSecrets.
03-12-2018
With JDK-8212605, we will now have a Java implementation of AccessController.doPrivileged, so I changed the summary of this issue to focus on getContext which still calls into the VM to get a snapshot of the caller's context.
06-11-2018
We might want to break this up into a doPrivileged part and a getStackAccessControlContext part. I have a working proof-of-concept for the doPrivileged part, and I have some ideas for speeding up the getStackAccessControlContext part.
28-09-2018
The idea is to move out the logic related to doPrivileged from the VM to Java and so the candidates are JVM_doPrivileged and JVM_GetStackAccessControlContext as they are tightly coupled together.
24-09-2018
it's linked to BKLG-135 so I assume so.
24-09-2018
Is this about doing doPrivileged and getContext in Java?