Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The stack for the main thread is created by the o/s when the process is created; the vm cannot later increase the size of this stack. The stack sizes for other java threads created by the vm are (mostly) controlled by the vm, and use the -Xss<N> value or a default. (The 'mostly' is because of operating system eccentricities.) The different stack sizes for the main thread vs. other threads means that some (typically recursive) routines may be able to run in one thread, but not in another. It also means that the -Xss<N> argument to set the thread stack size does not apply to all threads, at least on some platforms. This asymmetry should be eliminated.
|