summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-01 03:00:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-01 03:00:51 -0800
commit14d97b54e72ff2f0f6b13bc70418a3eaff7865e4 (patch)
tree3b4681dd74971a5aa30d410e27422258a4fda698 /regex.c
parent3edc515f91586cb5bb7bc666fb9222c67eabfdb2 (diff)
downloadtxr-14d97b54e72ff2f0f6b13bc70418a3eaff7865e4.tar.gz
txr-14d97b54e72ff2f0f6b13bc70418a3eaff7865e4.tar.bz2
txr-14d97b54e72ff2f0f6b13bc70418a3eaff7865e4.zip
gc: streamlining finalization-related code.
* gc.c (prepare_finals): Do not move unreachable objects with finalizers into generation 0 here. (call_finalizers_impl): Don't test the object for being in generation 0; that may not be true since we don't ensure that in prepare_finals now. Instead check he reachable flag of he finalization entry; that tells us that we are dealing with an object that had been found unreachable. When we re-introduce it into freshobj, we set its generation to zero. Also, don't bother with this freshobj logic if the full_gc flag has been set. That now includes not bothering to set object generations to zero.
Diffstat (limited to 'regex.c')
0 files changed, 0 insertions, 0 deletions