limit scope of lock acquisition in compileMethod2

This commit is contained in:
Joel Dice 2008-04-07 18:03:58 -06:00
parent 2dba75d7f2
commit 3fb90fdaa4

View File

@ -3979,9 +3979,9 @@ compileMethod2(MyThread* t)
(t, resolveThisPointer(t, t->stack, target)), methodOffset(t, target))
= &singletonValue(t, methodCompiled(t, target), 0);
} else {
ACQUIRE(t, t->m->classLock);
removeCallNode(t, node);
{ ACQUIRE(t, t->m->classLock);
removeCallNode(t, node);
}
Context context(t);
context.c->updateCall