From 9d4f9901bceef36830af9e19c7b4190c7f58ab5a Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 23 Jun 2014 10:40:22 -0600 Subject: [PATCH] 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. --- src/avian/classpath-common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/avian/classpath-common.h b/src/avian/classpath-common.h index de91a82564..12de97659b 100644 --- a/src/avian/classpath-common.h +++ b/src/avian/classpath-common.h @@ -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),