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:
Joel Dice 2014-06-23 10:40:22 -06:00
parent dbfd65a44d
commit 9d4f9901bc

View File

@ -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),