mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8214329: SwingMark SubMenus 9% regression in 12-b19 on Linux client
Reviewed-by: thartmann, mullan
This commit is contained in:
parent
32ea2e5343
commit
d1597bb1cb
1 changed files with 4 additions and 7 deletions
|
@ -1230,11 +1230,10 @@ JVM_ENTRY(jobject, JVM_GetStackAccessControlContext(JNIEnv *env, jclass cls))
|
||||||
oop protection_domain = NULL;
|
oop protection_domain = NULL;
|
||||||
|
|
||||||
// Iterate through Java frames
|
// Iterate through Java frames
|
||||||
RegisterMap reg_map(thread);
|
vframeStream vfst(thread);
|
||||||
javaVFrame *vf = thread->last_java_vframe(®_map);
|
for(; !vfst.at_end(); vfst.next()) {
|
||||||
for (; vf != NULL; vf = vf->java_sender()) {
|
|
||||||
// get method of frame
|
// get method of frame
|
||||||
Method* method = vf->method();
|
Method* method = vfst.method();
|
||||||
|
|
||||||
// stop at the first privileged frame
|
// stop at the first privileged frame
|
||||||
if (method->method_holder() == SystemDictionary::AccessController_klass() &&
|
if (method->method_holder() == SystemDictionary::AccessController_klass() &&
|
||||||
|
@ -1243,9 +1242,7 @@ JVM_ENTRY(jobject, JVM_GetStackAccessControlContext(JNIEnv *env, jclass cls))
|
||||||
// this frame is privileged
|
// this frame is privileged
|
||||||
is_privileged = true;
|
is_privileged = true;
|
||||||
|
|
||||||
javaVFrame *priv = vf; // executePrivileged
|
javaVFrame *priv = vfst.asJavaVFrame(); // executePrivileged
|
||||||
javaVFrame *caller_fr = priv->java_sender(); // doPrivileged
|
|
||||||
caller_fr = caller_fr->java_sender(); // caller
|
|
||||||
|
|
||||||
StackValueCollection* locals = priv->locals();
|
StackValueCollection* locals = priv->locals();
|
||||||
privileged_context = locals->obj_at(1);
|
privileged_context = locals->obj_at(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue