mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
implement Thread.getStackTrace, activeCount, and enumerate
This commit is contained in:
@ -108,4 +108,14 @@ public class Thread implements Runnable {
|
||||
t.sleepLock.wait(milliseconds);
|
||||
}
|
||||
}
|
||||
|
||||
public StackTraceElement[] getStackTrace() {
|
||||
return Throwable.resolveTrace(getStackTrace(peer));
|
||||
}
|
||||
|
||||
private static native Object getStackTrace(long peer);
|
||||
|
||||
public static native int activeCount();
|
||||
|
||||
public static native int enumerate(Thread[] array);
|
||||
}
|
||||
|
Reference in New Issue
Block a user