Need help to understand TLS behavior

David Holmes david.holmes at oracle.com
Tue Dec 15 04:36:06 UTC 2015


On 15/12/2015 6:52 AM, Bernd Eckenfels wrote:
> 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?

This is C/library Thread-local-Storage, not java.lang.ThreadLocal.

David
-----

> (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