chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] Release blocker? Stack checks completely FUBAR? Or


From: Jörg F . Wittenberger
Subject: Re: [Chicken-hackers] Release blocker? Stack checks completely FUBAR? Or am I just paranoid?
Date: Sat, 27 Feb 2016 13:09:29 +0100
User-agent: Mozilla/5.0 (X11; Linux armv7l; rv:38.0) Gecko/20100101 Icedove/38.4.0

Am 27.02.2016 um 12:25 schrieb Jörg F. Wittenberger:
> Hi folks,
> 
> if you really consider anything to be done to the argvector handling
> before the next release

...

I wonder: why not malloc exactly one argvector of TEMPORARY_STACK_SIZE
word and drop all the checking?

Then either the current av vector is the one passed in, then we can
safely reuse it.  If it's not we re-use the global anyway.

The downside: now we have one more area to scan in the garbage
collector.  (That's why I preferred to stack allocated one so far).

However reading the related code I get the feeling that we even could
simply use the temporary_stack as the argvector.  However I'm not sure
about that one.

Just thoughts.

Best

/Jörg





reply via email to

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