mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +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
|
void
|
||||||
finalizeObject(Thread* t, object o)
|
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 (object c = objectClass(t, o); c; c = classSuper(t, c)) {
|
||||||
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, c)); ++i) {
|
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, c)); ++i) {
|
||||||
object m = arrayBody(t, classMethodTable(t, c), i);
|
object m = arrayBody(t, classMethodTable(t, c), i);
|
||||||
|
Loading…
Reference in New Issue
Block a user