assert thread is in exclusive or exit state in removeMonitor

This commit is contained in:
Joel Dice 2008-05-05 07:07:59 -06:00
parent ebb498587f
commit 7dcd109567

View File

@ -1447,7 +1447,8 @@ makeArrayClass(Thread* t, object spec)
void void
removeMonitor(Thread* t, object o) removeMonitor(Thread* t, object o)
{ {
expect(t, t->state == Thread::ExclusiveState); expect(t, t->state == Thread::ExclusiveState
or t->state == Thread::ExitState);
unsigned hash; unsigned hash;
if (DebugMonitors) { if (DebugMonitors) {