summaryrefslogtreecommitdiff
path: root/libguile/conv-integer.i.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-06-23 11:47:42 +0200
committerAndy Wingo <wingo@pobox.com>2016-06-23 12:13:02 +0200
commitc01a2a757e3c59727bdfa8d77568bf42525fbe05 (patch)
treeb2f8d4ffb55df1b2ed4cc1853d2d6efa354cdbda /libguile/conv-integer.i.c
parent9a951678713557b548415d32eae6d63d039bf652 (diff)
downloadguile-c01a2a757e3c59727bdfa8d77568bf42525fbe05.tar.gz
Fix race between SMOB marking and finalization
* libguile/smob.c (clear_smobnum): New helper. (finalize_smob): Re-set the smobnum to the "finalized smob" type before finalizing. Fixes #19883. (scm_smob_prehistory): Pre-register a "finalized smob" type, which has no mark procedure. * test-suite/standalone/test-smob-mark-race.c: New file. * test-suite/standalone/Makefile.am: Arrange to build and run the new test.
Diffstat (limited to 'libguile/conv-integer.i.c')
0 files changed, 0 insertions, 0 deletions