chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] Need help to understand C_mutate better.


From: Felix
Subject: Re: [Chicken-hackers] Need help to understand C_mutate better.
Date: Sat, 22 Oct 2011 22:34:02 +0200 (CEST)

From: Jörg F. Wittenberger <address@hidden>
Subject: Re: [Chicken-hackers] Need help to understand C_mutate better.
Date: 21 Oct 2011 18:10:44 +0200

> From that theory I've been working in trial&error mode again.
> 
> I added a (gc) call to the end of my SIGCHLD handler.
> Guess what: It did not run into the first, almost-for-sure
> case.  Often enough to make me walk the dog waiting for the second
> case: the laptop coming back from a longer suspension period.
> 
> Now I wonder: as far as I understand C_mutate it will remember
> all assignments where the assigned value in within the nursery.

It will remember all assignments, later GC will make the (important) 
distinction whether there is heap-to-nursery pointer. It might
be an option to do the in-stack test directly inside C_mutate.
I don't think it buys much, though.

If you experience weird behaviour on different machines, one
suggestion might be to try out different nursery settings ("-:s<SIZE>"
for example). The size of the nursery (and of course the allocation
patterns and millions of other things) have a great influence on the
frequency and time of garbage collections.


cheers,
felix



reply via email to

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