[Gc] New GC Scheduler

Neal H. Walfield neal at walfield.org
Sat Jun 21 11:18:29 PDT 2008


At Thu, 19 Jun 2008 13:09:04 +0200,
Neal H. Walfield wrote:
> 
> At Thu, 19 Jun 2008 00:28:16 +0200,
> Neal H. Walfield wrote:
> > After some number of collections, a collection that seems perfectly
> > normal, will result in the triggering GC_NEW returning NULL.  I'm
> > still investing this but would like some feedback:
> 
> After some more investigation, it seems that it is not GC_malloc that
> is failing but something else (quite possibly my run time).  Running
> gctest, I also see failures, usually complains that:
> 
>   List reversal produced incorrect list - collector is broken
> 
> Other times, it simply terminates due to a NULL pointer dereference.
> Occasionally, the test passes.  This happens either with or without my
> scheduler enabled.  USE_MMAP and USE_MUNMAP are defined.
> 
> When I disable USE_MUNMAP, the test runs to completion successfully.

Turns out that it was a bug in my run-time.  For the interested, it
had to do with map splitting, i.e., unmapping part of an mmaped
region.



More information about the Gc mailing list