staticly type finalizer and cleaner

This commit is contained in:
Joshua Warner 2014-06-28 21:54:12 -06:00 committed by Joshua Warner
parent 1e201e54fc
commit 4df8f59f3c
2 changed files with 4 additions and 4 deletions

View File

@ -5182,11 +5182,11 @@ runFinalizeThread(Thread* t)
}
}
for (; finalizeList; finalizeList = finalizerQueueNext(t, finalizeList)) {
for (; finalizeList; finalizeList = reinterpret_cast<object>(finalizerQueueNext(t, finalizeList))) {
finalizeObject(t, finalizerQueueTarget(t, finalizeList), "finalize");
}
for (; cleanList; cleanList = cleanerQueueNext(t, cleanList)) {
for (; cleanList; cleanList = reinterpret_cast<object>(cleanerQueueNext(t, cleanList))) {
finalizeObject(t, cleanList, "clean");
}
}

View File

@ -91,7 +91,7 @@
(void* finalize)
(nogc object next)
(object queueTarget)
(object queueNext))
(finalizer queueNext))
(type list
(uint32_t size)
@ -294,7 +294,7 @@
(type phantomReference java/lang/ref/PhantomReference)
(type cleaner sun/misc/Cleaner
(object queueNext))
(cleaner queueNext))
(type byteArray [B
(extends jobject)