From e2f3e3da779b99d6efabe559a2e66ddde96c99b8 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 21 Oct 2008 17:49:32 -0600 Subject: [PATCH] enter active state at start of Java_java_lang_Runtime_dumpHeap --- src/builtin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/builtin.cpp b/src/builtin.cpp index cf11863135..dd2e95ec29 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -590,6 +590,8 @@ Java_java_lang_Runtime_gc(Thread* t, jobject) extern "C" JNIEXPORT void JNICALL Java_java_lang_Runtime_dumpHeap(Thread* t, jclass, jstring outputFile) { + ENTER(t, Thread::ActiveState); + unsigned length = stringLength(t, *outputFile); char n[length + 1]; stringChars(t, *outputFile, n);