protect local variable from GC in findUnwindTarget

This commit is contained in:
Joel Dice 2008-01-14 09:33:26 -07:00
parent 0298865efa
commit e4c1f6cc8f

View File

@ -1085,6 +1085,8 @@ findUnwindTarget(MyThread* t, void** targetIp, void** targetBase,
object node = findTraceNode(t, ip); object node = findTraceNode(t, ip);
if (node) { if (node) {
object method = traceNodeMethod(t, node); object method = traceNodeMethod(t, node);
PROTECT(t, method);
uint8_t* compiled = reinterpret_cast<uint8_t*> uint8_t* compiled = reinterpret_cast<uint8_t*>
(&singletonValue(t, methodCompiled(t, method), 0)); (&singletonValue(t, methodCompiled(t, method), 0));