[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Finalizers and incremental GC
From: |
Po Lu |
Subject: |
Finalizers and incremental GC |
Date: |
Fri, 03 Jun 2022 13:14:19 +0800 |
In my incremental garbage collector, finalizers are currently run every
time a finalizer is swept. This means every time Emacs enters garbage
collection during the sweeping phase, only a small amount of finalizers
are run.
Would it make more sense to run all the finalizers at once, after all
white objects are swept and a garbage collection cycle completes, like
the current garbage collector?
I can't seem to find any code in the wild actually using finalizers.
- Finalizers and incremental GC,
Po Lu <=