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

Re: [plt-scheme] Slow scheme_basic_env on Win2000



Hi Matthew,
setting the second parameter to 1 fixes the problem. Now scheme_basic_env
returns immmediately.
BTW: should i keep the address of the first parameter in a static variable
or can I leave it as is ?

Thanks a lot.

Pascal Doux

----- Original Message -----
From: "Matthew Flatt" <mflatt@cs.utah.edu>
To: "Pascal Doux" <Pascal.Doux@europe.tgs.com>
Cc: "Mickael Gasrel" <Mickael.Gasrel@europe.tgs.com>
Sent: Monday, May 13, 2002 7:19 PM
Subject: Re: [plt-scheme] Slow scheme_basic_env on Win2000


> At Mon, 13 May 2002 19:00:31 +0200, "Pascal Doux" wrote:
> > What parameter should I give to this function ?
> > I've tried the following code (without any progress)
> >
> >   unsigned long toto;
> >   scheme_set_stack_base(&toto, 0);
> >
> >   // Create a scheme session
> >   m_schemeEnv = scheme_basic_env();
>
> I should have been more clear: I'm particularly interested in the case
> where the second argument is non-zero.
>
> That forces you to explicitly register your static variables that
> contain GCable pointers, but it also disables some memory-walking code
> in the GC that I don't really trust.
>
> Thanks,
> Matthew