Merge pull request #326 from dicej/gc-jvmfillinstacktrace

fix GC safety bug in jvmFillInStackTrace
This commit is contained in:
Joshua Warner 2014-08-19 11:06:31 -06:00
commit 62983ebd7a

View File

@ -3502,6 +3502,7 @@ uint64_t jvmFillInStackTrace(Thread* t, uintptr_t* arguments)
{
GcThrowable* throwable
= cast<GcThrowable>(t, *reinterpret_cast<jobject>(arguments[0]));
PROTECT(t, throwable);
object trace = getTrace(t, 2);
throwable->setTrace(t, trace);