|
From: Florian K. <br...@ac...> - 2012-06-29 12:10:25
|
On 06/28/2012 01:27 PM, Julian Seward wrote: > > (general question) what does the standard says happens if the array size is > zero or negative, at run time? > You get "undefined behaviour". When evaluated, the array size shall be greater than zero. > Ok for the change provided that > > (1) the num-callers is limited to some sane values at startup so we can't > trash the stack. >= 1 and <= 500 say. The V thread stacks are small > (64k) (or were, at least, maybe not any more) OK. > > (2) this doesn't change the amount of memory required to store the ExeContexts > in the heap (but I'm sure it doesn't -- you're only talking about stack > allocation, right?) Right, this is only about the stack-allocated array. No effect on the memory spent for ExeContexts. Florian |