src/hotspot/share/classfile/javaClasses.cpp
changeset 48823 99c973b56994
parent 48814 f01f81fa1242
child 49036 bc92debe57e4
--- a/src/hotspot/share/classfile/javaClasses.cpp	Wed Jan 31 16:48:41 2018 +0100
+++ b/src/hotspot/share/classfile/javaClasses.cpp	Wed Jan 31 11:07:55 2018 -0500
@@ -1968,7 +1968,7 @@
   bool skip_throwableInit_check = false;
   bool skip_hidden = !ShowHiddenFrames;
 
-  for (frame fr = thread->last_frame(); max_depth != total_count;) {
+  for (frame fr = thread->last_frame(); max_depth == 0 || max_depth != total_count;) {
     Method* method = NULL;
     int bci = 0;