Re: [Chicken-hackers] [PATCH] Fix couple of hangs related to finalizers and (gc #t)

2019-09-14 Thread Peter Bex
On Sat, Aug 10, 2019 at 08:04:31AM +0300, megane wrote: > megane writes: > > Also signal an error if trying to re-enter. This also would cause an > > infinite loop (when calling (gc #t) inside a finalizer). It would > > need special handling if re-entry is to be supported. > > This is too

Re: [Chicken-hackers] [PATCH] Fix couple of hangs related to finalizers and (gc #t)

2019-08-09 Thread megane
megane writes: > > Also signal an error if trying to re-enter. This also would cause an > infinite loop (when calling (gc #t) inside a finalizer). It would > need special handling if re-entry is to be supported. This is too aggressive. The call from ##sys#interrupt-hook should still go

[Chicken-hackers] [PATCH] Fix couple of hangs related to finalizers and (gc #t)

2019-08-09 Thread megane
Hi, Here's a fix for #1586. You can trigger the second case with this (run compiled): (cond-expand (chicken-5 (import (chicken base)) (import chicken.gc)) (else (import chicken))) (let ([o (vector)]) (set-finalizer! o (lambda (_) (print "in