mirror of
https://github.com/alibaba/arthas.git
synced 2026-10-21 05:19:50 +00:00
Fixed: stack command result missing self trace frame
This commit is contained in:
@@ -385,8 +385,8 @@ abstract public class ThreadUtil {
|
||||
|
||||
//stack
|
||||
StackTraceElement[] stackTraceElementArray = currentThread.getStackTrace();
|
||||
//drop top 10 frames of Enhancer
|
||||
int droppingFrames = 10;
|
||||
//drop top 9 frames of Enhancer
|
||||
int droppingFrames = 9;
|
||||
StackTraceElement[] actualStackFrames = new StackTraceElement[stackTraceElementArray.length - droppingFrames];
|
||||
System.arraycopy(stackTraceElementArray, droppingFrames, actualStackFrames, 0, actualStackFrames.length);
|
||||
stackModel.setStackTrace(actualStackFrames);
|
||||
|
||||
Reference in New Issue
Block a user