< prev index next >
src/hotspot/share/prims/jvmtiEnvBase.cpp
Print this page
@@ -675,11 +675,11 @@
RegisterMap reg_map(java_thread);
int depth = 0;
for (javaVFrame *jvf = java_thread->last_java_vframe(®_map); jvf != NULL;
jvf = jvf->java_sender()) {
- if (depth++ < MaxJavaStackTraceDepth) { // check for stack too deep
+ if (MaxJavaStackTraceDepth == 0 || depth++ < MaxJavaStackTraceDepth) { // check for stack too deep
// add locked objects for this frame into list
err = get_locked_objects_in_frame(calling_thread, java_thread, jvf, owned_monitors_list, depth-1);
if (err != JVMTI_ERROR_NONE) {
return err;
}
< prev index next >