From a56c1d8765dea2a8de2fa58fce133c2edf6d377f Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 20 Aug 2009 12:37:03 -0600 Subject: [PATCH] fix GC-safety bug in resolveSpec --- src/machine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/machine.cpp b/src/machine.cpp index fdbe8ed029..1c8e985548 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -618,6 +618,7 @@ resolveSpec(Thread* t, object loader, object spec, unsigned offset) } PROTECT(t, spec); + PROTECT(t, loader); unsigned length = s - &byteArrayBody(t, spec, offset);