changeset 53244:a7bd89486175

8214329: SwingMark SubMenus 9% regression in 12-b19 on Linux client Reviewed-by: thartmann, mullan
author dlong
date Tue, 18 Dec 2018 12:45:07 -0800
parents 2f41e4935c34
children 8a61a04c456c
files src/hotspot/share/prims/jvm.cpp
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/jvm.cpp	Tue Dec 18 12:36:27 2018 -0800
+++ b/src/hotspot/share/prims/jvm.cpp	Tue Dec 18 12:45:07 2018 -0800
@@ -1230,11 +1230,10 @@
   oop protection_domain = NULL;
 
   // Iterate through Java frames
-  RegisterMap reg_map(thread);
-  javaVFrame *vf = thread->last_java_vframe(&reg_map);
-  for (; vf != NULL; vf = vf->java_sender()) {
+  vframeStream vfst(thread);
+  for(; !vfst.at_end(); vfst.next()) {
     // get method of frame
-    Method* method = vf->method();
+    Method* method = vfst.method();
 
     // stop at the first privileged frame
     if (method->method_holder() == SystemDictionary::AccessController_klass() &&
@@ -1243,9 +1242,7 @@
       // this frame is privileged
       is_privileged = true;
 
-      javaVFrame *priv = vf;                        // executePrivileged
-      javaVFrame *caller_fr = priv->java_sender();  // doPrivileged
-      caller_fr = caller_fr->java_sender();         // caller
+      javaVFrame *priv = vfst.asJavaVFrame();       // executePrivileged
 
       StackValueCollection* locals = priv->locals();
       privileged_context = locals->obj_at(1);