diff options
author | Han-Wen Nienhuys <hanwen@lilypond.org> | 2002-08-16 22:01:10 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@lilypond.org> | 2002-08-16 22:01:10 +0000 |
commit | 67329a9eefdcfae7ccee5ba2afc783e30dacdae2 (patch) | |
tree | 62f268f12a88c3f969ad26f6ab0a9929eff71706 /libguile/gc-segment.c | |
parent | f07c886abbde77c62528981137406da88cf2f055 (diff) | |
download | guile-67329a9eefdcfae7ccee5ba2afc783e30dacdae2.tar.gz |
* mallocs.c (scm_malloc_obj): use scm_gc_malloc in stead of
malloc.
* gc-segment.c (scm_i_get_new_heap_segment): remove cluster cruft:
only use SCM_MIN_HEAP_SEG_SIZE.
* ports.c (scm_add_to_port_table): add backwards compatibility
function
* ports.h: use scm_i_ prefix for port table and port table size.
Diffstat (limited to 'libguile/gc-segment.c')
-rw-r--r-- | libguile/gc-segment.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libguile/gc-segment.c b/libguile/gc-segment.c index 593aa29a2..46054fc53 100644 --- a/libguile/gc-segment.c +++ b/libguile/gc-segment.c @@ -512,21 +512,14 @@ scm_i_get_new_heap_segment (scm_t_cell_type_statistics *freelist, policy_on_erro freelist->collected = LONG_MAX; } - if (len > scm_max_segment_size) - len = scm_max_segment_size; + if (len > SCM_MIN_HEAP_SEG_SIZE) + len = SCM_MIN_HEAP_SEG_SIZE; { - size_t smallest; scm_t_heap_segment * seg = scm_i_make_empty_heap_segment (freelist); - - smallest = 1024 * 10; /* UGH. */ - - if (len < smallest) - len = smallest; /* Allocate with decaying ambition. */ - while ((len >= SCM_MIN_HEAP_SEG_SIZE) - && (len >= smallest)) + while (len >= SCM_MIN_HEAP_SEG_SIZE) { if (scm_i_initialize_heap_segment_data (seg, len)) { |