[Top][All Lists]

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

Re: [Help-smalltalk] Tracer tool

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Tracer tool
Date: Mon, 20 Apr 2009 12:33:20 +0200
User-agent: Thunderbird (Macintosh/20090302)

> Thanks for your answser :)
> This is strange in the activate_new_context method I've done this :
>   newContext = alloc_stack_context (size);
>   newContext->traced = 0;

You definitely want FROM_INT (0) or _gst_nil_oop here, or expect crashes
at the next GC.

>   fprintf (stderr, "traced value : %d\n", newContext->traced);
>   fprintf (stderr, "parent value : %d\n", ((gst_method_context) OOP_TO_OBJ 
> (_gst_this_context_oop))->traced);
> And if the traced value for the parent context is not nil any idea of the 
> problem ?

nil is not zero, it is _gst_nil_oop (usually an hex value ending with

Look at all callers of alloc_stack_context, in particular
_gst_prepare_execution_environment.  But, adding new instance variables
to contexts is a no-no. :-)

By the way, with your GSOC application having been accepted "with very
high probability", I would like you to publish your code somewhere as
soon as possible.  I don't care in what state it is, don't be afraid of


reply via email to

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