From f94157aa381e0e2a3ac0d33c2db8453af00a798b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 19 Aug 2014 10:14:07 -0600 Subject: [PATCH] fix GC safety bug in jvmFillInStackTrace This fixes spurious Trace test failures with openjdk-src build. --- src/classpath-openjdk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 993a881bb1..1385444746 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -3502,6 +3502,7 @@ uint64_t jvmFillInStackTrace(Thread* t, uintptr_t* arguments) { GcThrowable* throwable = cast(t, *reinterpret_cast(arguments[0])); + PROTECT(t, throwable); object trace = getTrace(t, 2); throwable->setTrace(t, trace);