mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
enter active state before generating stack trace in Thread.getTrace
This commit is contained in:
parent
479c48f1dd
commit
95e5f8203c
@ -713,6 +713,8 @@ Java_java_lang_Thread_interrupt(Thread* t, jclass, jlong peer)
|
||||
extern "C" JNIEXPORT jobject JNICALL
|
||||
Java_java_lang_Thread_getTrace(Thread* t, jclass, jlong peer)
|
||||
{
|
||||
ENTER(t, Thread::ActiveState);
|
||||
|
||||
if (reinterpret_cast<Thread*>(peer) == t) {
|
||||
return makeLocalReference(t, makeTrace(t));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user