JDK-8173369 : Investigate to implement AccessController.getContext using StackWalker
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2017-01-25
  • Updated: 2021-07-28
  • Resolved: 2021-07-28
Related Reports
Blocks :  
Relates :  
Comments
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?
24-09-2018