guile-devel
[Top][All Lists]
Advanced

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

scm_done_malloc negatives [1.6]


From: Kevin Ryde
Subject: scm_done_malloc negatives [1.6]
Date: Sat, 09 Aug 2003 08:05:10 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

In the 1.6 branch, scm_done_malloc has a bit of code,

  if (size < 0) {
    if (scm_mallocated < size)
      /* The byte count of allocated objects has underflowed.  This is
         probably because you forgot to report the sizes of objects you
         have allocated, by calling scm_done_malloc or some such.  When
         the GC freed them, it subtracted their size from
         scm_mallocated, which underflowed.  */
      abort ();


This looks slightly suspicious, since scm_mallocated is a ulong.  I
wonder if it's meant to be "-size" in the comparison?




reply via email to

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