mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
remove redundant PROTECT usage
This was causing crashes at GC time since we ended up visiting the same reference twice in a single GC cycle.
This commit is contained in:
parent
dbfd65a44d
commit
9d4f9901bc
@ -513,8 +513,6 @@ invoke(Thread* t, object method, object instance, object args)
|
||||
}
|
||||
|
||||
if (methodParameterCount(t, method)) {
|
||||
PROTECT(t, method);
|
||||
|
||||
unsigned specLength = byteArrayLength(t, methodSpec(t, method));
|
||||
THREAD_RUNTIME_ARRAY(t, char, spec, specLength);
|
||||
memcpy(RUNTIME_ARRAY_BODY(spec),
|
||||
|
Loading…
Reference in New Issue
Block a user