Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: tonyw on March 04, 2003, 08:33:02 AM
-
How is stack space allocated in Linux? Is there a "stack" command, like in AmigaOS? Or does it automatically expand as required? Or what?
(I'm talking of kaffe, the JVM, which in m68k form is suffering random failures similar to stack overflow)
tony
-
Stack space in Linux is allowed to grow up to the max limit. So as long as you stay below a (sensible?) amount of megabytes you should be fine. This is however quite possibly different from cpu to cpu. Linux isn't JUST Linux if you're using m68k or ppc, for instance.
-
There is no stack limit, and the stack expands automagically. The stack memory can even be swapped to the disk, if other parts of the system need the physical memory.
If you want, you can limit the maximum possible stack size by using 'limit' command. Normally this is not required, though.
-
Thanks, guys. Great help.
tony