Cleanup mark-during-GC debug checks.
authorHan-Wen Nienhuys <hanwen@lilypond.org>
Wed, 10 Sep 2008 02:08:16 +0000 (23:08 -0300)
committerHan-Wen Nienhuys <hanwen@lilypond.org>
Wed, 10 Sep 2008 02:08:16 +0000 (23:08 -0300)
commit7ddb9baf80744f0ea4810c35b465d96f48338750
tree7827a68cb9a524b33936703b113140e452b60c76
parenta8db4a59c898598cc55dd3bd86a6fd8618721d10
Cleanup mark-during-GC debug checks.

* libguile/__scm.h (SCM_DEBUG): add SCM_DEBUG_MARKING_API

* libguile/gc.h (SCM_SET_GC_MARK): depending on
SCM_DEBUG_MARKING_API crash if someone is touching markbits
outside regular hours.

Rename ensure_marking() to scm_i_ensure_marking().

* libguile/inline.h (scm_double_cell, scm_cell): only set mark bits
for debugging if SCM_DEBUG_MARKING_API is unset

* libguile/gc-mark.c: Issue deprecation warning if we are marking
outside of the GC mark phase.
libguile/__scm.h
libguile/gc-mark.c
libguile/gc.c
libguile/gc.h
libguile/inline.h