Need help to understand TLS behavior

Bernd Eckenfels ecki at zusammenkunft.net
Mon Dec 14 20:52:39 UTC 2015


Am Mon, 14 Dec 2015 09:15:55 -0500
schrieb Roger Riggs <Roger.Riggs at Oracle.com>:

> Hi,
> 
> The reaper thread that waits for process exit has minimal stack 
> requirements,
> and if possible should not consume all of the memory for a full stack.
> The 32k number is a guess at a small stack.  It has worked so far
> except in cases
> where the VM configuration or parameters increase the size of stack
> the VM needs.

Maybe it can benefit from the new "No Inherit TLS" Thread constructor?

(However I wonder how two references in the thread object would
overflow the stack...)

Gruss
Bernd



More information about the core-libs-dev mailing list