From 3fb90fdaa459d4503f3ae80e3d07ec7a2559bba4 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 7 Apr 2008 18:03:58 -0600 Subject: [PATCH] limit scope of lock acquisition in compileMethod2 --- src/compile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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