diff options
author | Ludovic Courtes <ludovic.courtes@laas.fr> | 2006-07-02 20:26:29 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-10 20:28:41 +0200 |
commit | 915b3f9f9af5b9dce63e8d9df2ae4edba709d4b5 (patch) | |
tree | b3abc63885ed4f3892d74396f993cbb72d75f4a3 /libguile/struct.c | |
parent | 42e6668b5e91a101c9d163aae0039451444546be (diff) | |
download | guile-915b3f9f9af5b9dce63e8d9df2ae4edba709d4b5.tar.gz |
Implemented `gc-stats' using `libgc' information.
* libguile/gc.c (protected_obj_count): Made `static'.
(scm_heap_size): Mapped to `heap-size' rather than `cell-heap-size'.
(scm_heap_free_size): New.
(scm_heap_total_allocated): New.
(scm_gc_stats): Rewritten. Return the (little) information available
from `libgc'.
(scm_gc_disable): New.
(scm_gc_enable): New.
(scm_storage_prehistory): Don't call `GC_add_roots ()' with
SCM_SYS_PROTECTS. Use `GC_is_visible ()' to check whether
SCM_SYS_PROTECTS is visible.
* libguile/gc.h (scm_gc_enable): New declaration.
(scm_gc_disable): New declaration.
(scm_gc_for_alloc): Removed.
(scm_gc_for_newcell): Removed.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-46
Diffstat (limited to 'libguile/struct.c')
0 files changed, 0 insertions, 0 deletions