[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] force finalizers only if finalizers exist
From: |
felix . winkelmann |
Subject: |
Re: [PATCH] force finalizers only if finalizers exist |
Date: |
Thu, 07 May 2020 10:15:03 +0200 |
> The Right Thing is probably to eventually run the GC on a private thread,
> at least when multiple threads are running at all. That way the finalizers
> run on the same thread that doesn't hold any locks or otherwise risk
> trouble. That's what the JVM and the CLR do.
>
Yes, this was already the consensus, but thready/interrupts/IO/finalizers
and all the interactions between them need an overhaul anyway.
felix