fix GC safety bug in jvmFillInStackTrace

This fixes spurious Trace test failures with openjdk-src build.
This commit is contained in:
Joel Dice 2014-08-19 10:14:07 -06:00
parent bfb96ce065
commit f94157aa38

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