[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fixing `gc-live-object-stats'

From: Ludovic Courtès
Subject: Re: [PATCH] Fixing `gc-live-object-stats'
Date: Mon, 05 Dec 2005 09:50:37 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)


Neil Jerram <address@hidden> writes:

> Ludovic, if you can post the patch again, I'll commit it.

Thanks Neil, I appreciate your involvement.


2005-11-17  Ludovic Courtès  <address@hidden>

        * 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.

--- orig/libguile/gc-card.c
+++ mod/libguile/gc-card.c
@@ -306,6 +306,10 @@
   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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]