@@ -68,11 +68,11 @@ return; } // handle general case int loop_count = 0; - int loop_max = MaxJavaStackTraceDepth * 2; + int loop_max = JfrOptionSet::stackdepth() * 2; do { loop_count++; // By the time we get here we should never see unsafe but better safe then segv'd if (loop_count > loop_max || !_frame.safe_for_sender(_thread)) { _mode = at_end_mode;