From 7dcd109567ef5a77f581545ea6f7a5c8334035b6 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 5 May 2008 07:07:59 -0600 Subject: [PATCH] assert thread is in exclusive or exit state in removeMonitor --- src/machine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/machine.cpp b/src/machine.cpp index 0e2e9ba3f1..5391af5e86 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -1447,7 +1447,8 @@ makeArrayClass(Thread* t, object spec) void removeMonitor(Thread* t, object o) { - expect(t, t->state == Thread::ExclusiveState); + expect(t, t->state == Thread::ExclusiveState + or t->state == Thread::ExitState); unsigned hash; if (DebugMonitors) {