2009/7/2 Ian Lance Taylor <iant@xxxxxxxxxx>: > As the documentation of the option says: > > Note that this switch does not actually cause checking to be done; > the operating system must do that. The switch causes generation > of code to ensure that the operating system sees the stack being > extended. > > The store deep in the stack frame is what tells the OS that the stack is > being extended. > > There is currently no option to control the default offset to use. > > Ian > What I don't understand is when the check action is taken since there is no additional code on the return from a function call. There seems to be no way to guarantee OS will get control just at the moment when CPU is returned from a function, so OS may miss the chance to do the check on the stack. PRC Jul 2, 2009