mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-29 08:20:20 +02:00
* gc-card.c (scm_i_card_statistics): Return if BITVEC is NULL.
This was typically hit when running `gc-live-object-stats' right after starting Guile.
This commit is contained in:
parent
aa1babce68
commit
9fb5c8f95c
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-12-06 Ludovic Courtès <ludovic.courtes@laas.fr>
|
||||
|
||||
* gc-card.c (scm_i_card_statistics): Return if BITVEC is NULL.
|
||||
This was typically hit when running `gc-live-object-stats' right
|
||||
after starting Guile.
|
||||
|
||||
2005-11-30 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* srfi-13.c (scm_string_append_shared): No copying if just one
|
||||
|
|
|
@ -306,6 +306,10 @@ scm_i_card_statistics (scm_t_cell *p, SCM hashtab, scm_t_heap_segment *seg)
|
|||
int span = seg->span;
|
||||
int offset = SCM_MAX (SCM_GC_CARD_N_HEADER_CELLS, span);
|
||||
|
||||
if (!bitvec)
|
||||
/* Card P hasn't been initialized yet by `scm_i_init_card_freelist ()'. */
|
||||
return;
|
||||
|
||||
for (p += offset; p < end; p += span, offset += span)
|
||||
{
|
||||
scm_t_bits tag = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue