From 95e5f8203c0aca25b628bb67369035489b0f5e99 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 15 Apr 2008 23:27:42 -0600 Subject: [PATCH] enter active state before generating stack trace in Thread.getTrace --- src/builtin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/builtin.cpp b/src/builtin.cpp index 551ed0f2ec..f93e6e07ef 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -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(peer) == t) { return makeLocalReference(t, makeTrace(t)); } else {