At 13:01 +0200 2000/03/10, Antti-Juhani Kaijanaho wrote:
>On Fri, Mar 10, 2000 at 11:55:19AM +0100, Hans Aberg wrote:
>> The strange thing though is that it happens on a Sparc-station, because it
>> should have an OS kernel which knows how to enlarge the stack at need. Why
>> does its OS not enlarge the stack?
>
>ulimit?
>At least here [1] the stack is by default limited to 8kB.
>
>See the ulimit man page for how to change it.
There are similar limits on the MacOS: For the very old, 68k CPU's, Mac's
use default 8 kB. For the PPC, the default is 64kB.
By contrast, the MacPPC uses defaults of 512 kB to 1 MB (I do not recall
exactly what immediately), and we implemented the option of adjusting it.
I know that Mach certainly knows how to enlarge the stack. But what about
the UNIX kernel, does it not know that too?
If one runs Hugs under Mach, and Mach knows how to enlarge the stack, is
there any point of letting Hugs STG have its own stack. I mean, is that not
going to be slower with a stack implemented on higher level?
Hans Aberg