--- a/hotspot/src/share/vm/classfile/javaClasses.cpp Tue Jul 24 10:51:00 2012 -0700
+++ b/hotspot/src/share/vm/classfile/javaClasses.cpp Fri Jul 27 16:14:15 2012 -0700
@@ -1462,7 +1462,7 @@
nmethod* nm = NULL;
bool skip_fillInStackTrace_check = false;
bool skip_throwableInit_check = false;
- bool skip_hidden = false;
+ bool skip_hidden = !ShowHiddenFrames;
for (frame fr = thread->last_frame(); max_depth != total_count;) {
methodOop method = NULL;
@@ -1544,9 +1544,6 @@
}
if (method->is_hidden()) {
if (skip_hidden) continue;
- } else {
- // start skipping hidden frames after first non-hidden frame
- skip_hidden = !ShowHiddenFrames;
}
bt.push(method, bci, CHECK);
total_count++;