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