help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Tracer tool


From: Gwenael Casaccio
Subject: Re: [Help-smalltalk] Tracer tool
Date: Mon, 20 Apr 2009 15:27:43 +0200
User-agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; x86_64; ; )

On Monday 20 April 2009 15:06:47 you wrote:
> On Monday 20 April 2009 12:33:20 you wrote:
> > > 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
> > 0x...800).
> >
> > 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
> > that.
> >
> > Paolo
>
> Is it possible to send a message to an object inside the
> methodsend_block_value ?

Instead of adding a new variable maybe I can reuse native_ip in the context 
structure ?

Gwenael Casaccio




reply via email to

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