Re: [PATCH] force finalizers only if finalizers exist

2020-05-07 Thread felix . winkelmann
> 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

Re: [PATCH] force finalizers only if finalizers exist

2020-05-06 Thread Jörg F. Wittenberger
On Wed, 6 May 2020 13:13:24 -0400 John Cowan wrote: > 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

Re: [PATCH] force finalizers only if finalizers exist

2020-05-06 Thread John Cowan
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. On Wed, May 6, 2020 at 5:42 AM

Re: [PATCH] force finalizers only if finalizers exist

2020-05-06 Thread felix . winkelmann
> There might be a situation where a thread is already executing > ##sys#run-pending-finalizers, but has run out of its time slice, or gc > interrupted or something. In this situation running > ##sys#run-pending-finalizers only once might not be enough. This is basically true, but with threads we

Re: [PATCH] force finalizers only if finalizers exist

2020-05-03 Thread megane
felix.winkelm...@bevuta.com writes: >> On 2020-04-07 14:51, felix.winkelm...@bevuta.com wrote: >> > > > This patch disables the final GC for finalizer forcing at normal >> > > > program termination >> > > > if no finalizers are live as the GC is unnecessary in such cases. >> > > >> > > How

Re: [PATCH] force finalizers only if finalizers exist

2020-04-29 Thread felix . winkelmann
> On 2020-04-07 14:51, felix.winkelm...@bevuta.com wrote: > > > > This patch disables the final GC for finalizer forcing at normal > > > > program termination > > > > if no finalizers are live as the GC is unnecessary in such cases. > > > > > > How about possible pending finalizers? > > > > You

Re: [PATCH] force finalizers only if finalizers exist

2020-04-29 Thread Evan Hanson
On 2020-04-07 14:51, felix.winkelm...@bevuta.com wrote: > > > This patch disables the final GC for finalizer forcing at normal program > > > termination > > > if no finalizers are live as the GC is unnecessary in such cases. > > > > How about possible pending finalizers? > > You mean pending

Re: [PATCH] force finalizers only if finalizers exist

2020-04-07 Thread felix . winkelmann
> > felix.winkelm...@bevuta.com writes: > > > This patch disables the final GC for finalizer forcing at normal program > > termination > > if no finalizers are live as the GC is unnecessary in such cases. > > How about possible pending finalizers? You mean pending from a previous GC? I'm not

Re: [PATCH] force finalizers only if finalizers exist

2020-04-07 Thread megane
felix.winkelm...@bevuta.com writes: > This patch disables the final GC for finalizer forcing at normal program > termination > if no finalizers are live as the GC is unnecessary in such cases. How about possible pending finalizers? > > felix

[PATCH] force finalizers only if finalizers exist

2020-04-07 Thread felix . winkelmann
This patch disables the final GC for finalizer forcing at normal program termination if no finalizers are live as the GC is unnecessary in such cases. felix From fe21a1e2d61196d07f766fac87d8bf54dcc95336 Mon Sep 17 00:00:00 2001 From: felix Date: Tue, 7 Apr 2020 12:40:22 +0200 Subject: [PATCH]