diff options
author | Ludovic Courtes <ludovic.courtes@laas.fr> | 2006-05-22 19:12:12 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-05 09:33:20 +0200 |
commit | 378f262561cb381e8b3cff3faac1157605422015 (patch) | |
tree | 1dbfc664ccdcade9d54e1878246caf22e947359c /libguile/threads.h | |
parent | 6bad09ba9f203f5aaf8024ab198995d2470fb688 (diff) | |
download | guile-378f262561cb381e8b3cff3faac1157605422015.tar.gz |
Added support for SMOB custom mark procedures.
* libguile/gc.c (scm_gc_mark): Removed.
(scm_gc_mark_dependencies): Removed.
(scm_mark_locations): Removed.
* libguile/gc.h (scm_gc_mark_dependencies): Removed.
(scm_mark_locations): Removed.
* libguile/inline.h (scm_cell): Use `GC_MALLOC ()' instead of `GC_malloc ()'.
* libguile/smob.c (smob_freelist): New.
(smob_gc_kind): New.
(smob_mark): New.
(scm_gc_mark): New.
(scm_i_new_smob_with_mark_proc): New.
(scm_smob_prehistory): Initialize `smob_freelist' and `smob_gc_kind'.
* libguile/smob.h (scm_i_new_smob_with_mark_proc): New declaration.
(SCM_NEWSMOB): Use it if a mark procedure is available.
(SCM_NEWSMOB2): Likewise.
(SCM_NEWSMOB3): Likewise.
* libguile/threads.c (guilify_self_1): Initialize the
`current_mark_stack_*' fields.
* libguile/threads.h (scm_i_thread)[current_mark_stack_ptr]: New field.
[current_mark_stack_limit]: New field.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-22
Diffstat (limited to 'libguile/threads.h')
-rw-r--r-- | libguile/threads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libguile/threads.h b/libguile/threads.h index 7e33041e8..dced696ea 100644 --- a/libguile/threads.h +++ b/libguile/threads.h @@ -72,6 +72,11 @@ typedef struct scm_i_thread { int gc_running_p; /* non-zero while this thread does GC or a sweep. */ + /* Information about the Boehm-GC mark stack during the mark phase. This + is used by `scm_gc_mark ()'. */ + void *current_mark_stack_ptr; + void *current_mark_stack_limit; + /* Other thread local things. */ SCM dynamic_state; |