mirror of
https://github.com/corda/corda.git
synced 2025-01-20 19:49:25 +00:00
don't run Java finalizers when exiting the VM
This commit is contained in:
parent
14e73560bb
commit
7b183e8f4e
@ -484,6 +484,12 @@ postCollect(Thread* t)
|
||||
void
|
||||
finalizeObject(Thread* t, object o)
|
||||
{
|
||||
if (t->state == Thread::ExitState) {
|
||||
// don't waste time running Java finalizers if we're exiting the
|
||||
// VM
|
||||
return;
|
||||
}
|
||||
|
||||
for (object c = objectClass(t, o); c; c = classSuper(t, c)) {
|
||||
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, c)); ++i) {
|
||||
object m = arrayBody(t, classMethodTable(t, c), i);
|
||||
|
Loading…
Reference in New Issue
Block a user