mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix GC safety bug in jvmFillInStackTrace
This fixes spurious Trace test failures with openjdk-src build.
This commit is contained in:
parent
bfb96ce065
commit
f94157aa38
@ -3502,6 +3502,7 @@ uint64_t jvmFillInStackTrace(Thread* t, uintptr_t* arguments)
|
|||||||
{
|
{
|
||||||
GcThrowable* throwable
|
GcThrowable* throwable
|
||||||
= cast<GcThrowable>(t, *reinterpret_cast<jobject>(arguments[0]));
|
= cast<GcThrowable>(t, *reinterpret_cast<jobject>(arguments[0]));
|
||||||
|
PROTECT(t, throwable);
|
||||||
|
|
||||||
object trace = getTrace(t, 2);
|
object trace = getTrace(t, 2);
|
||||||
throwable->setTrace(t, trace);
|
throwable->setTrace(t, trace);
|
||||||
|
Loading…
Reference in New Issue
Block a user