remove obsolete code from postVisit; upgrade assert to expect for debugging

This commit is contained in:
Joel Dice 2008-08-11 15:16:55 -06:00
parent 6ee2b0280e
commit 22a5707966

View File

@ -356,15 +356,7 @@ postVisit(Thread* t, Heap::Visitor* v)
Machine* m = t->m;
bool major = m->heap->collectionType() == Heap::MajorCollection;
for (object* p = &(m->finalizeQueue); *p; p = &(finalizerNext(t, *p))) {
v->visit(p);
v->visit(&finalizerTarget(t, *p));
}
for (object* p = &(m->finalizeQueue); *p; p = &(finalizerNext(t, *p))) {
v->visit(p);
v->visit(&finalizerTarget(t, *p));
}
assert(t, m->finalizeQueue == 0);
object firstNewTenuredFinalizer = 0;
object lastNewTenuredFinalizer = 0;
@ -469,7 +461,8 @@ postVisit(Thread* t, Heap::Visitor* v)
}
if (lastNewTenuredWeakReference) {
jreferenceVmNext(t, lastNewTenuredWeakReference) = m->tenuredWeakReferences;
jreferenceVmNext(t, lastNewTenuredWeakReference)
= m->tenuredWeakReferences;
m->tenuredWeakReferences = firstNewTenuredWeakReference;
}
}
@ -1457,7 +1450,7 @@ removeMonitor(Thread* t, object o)
object p = hashMapRemove(t, t->m->monitorMap, o, objectHash, objectEqual);
assert(t, p);
expect(t, p);
if (DebugMonitors) {
fprintf(stderr, "dispose monitor %p for object %x\n",