Review Request: 8221530: Caller sensitive methods not handling caller = null when invoked by JNI code with no java frames on stack

Peter Levart peter.levart at
Thu Mar 28 16:23:29 UTC 2019

On 3/28/19 4:46 PM, Peter Levart wrote:
> Reflection.verifyMemberAccess() is called not only from 
> AccessibleObject.slowVerifyAccess() but from elsewhere too.
> For example, from ReflectUtil.ensureMemberAccess which is used in @CS 
> AtomicXxxFieldUpdater(s), or from @CS java.util.ServiceLoader.load... 

Well, it seems that it is not so easy. Those two usages need caller for 
other purposes too. So they couldn't function without caller even if the 
access check was granted...

Regards, Peter

More information about the core-libs-dev mailing list