diff --git a/src/compile.cpp b/src/compile.cpp index 76f50b4628..1c17a816d7 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -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