On 11/20/13 06:56, Andrew MacLeod wrote:
On 11/20/2013 08:44 AM, Jakub Jelinek wrote:
On Wed, Nov 20, 2013 at 08:35:28AM -0500, Andrew MacLeod wrote:
I also hacked up the compiler to report what the 'top' of the stack
was for a compilation unit. I then ran it through a bootstrap and
full testsuite run of all languages, and looked for the maximum
number of context structs in use at one time. Normally only 1 or 2
were ever in use, but its topped out at 7 during some of the openmp
tests. So my current limit of 30 will likely never been reached.
??? You can trivially create a testcase where it will be reached
(and you certainly should, so that you actually test the fallback).
Not something we're likely to see every day, but excellent! a testcase
is good :-) I'll add this as a testcase.
Do you think the current limit of 30 is reasonable?
Yes if you've verified the fall back works ;-) You probably could even
drop it to 10ish.
jeff