enter active state at start of Java_java_lang_Runtime_dumpHeap

This commit is contained in:
Joel Dice 2008-10-21 17:49:32 -06:00
parent 0459a7701c
commit e2f3e3da77

View File

@ -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);