ReservedStackAccess in ThreadLocal

Alan Bateman Alan.Bateman at oracle.com
Thu Sep 28 16:55:47 UTC 2023


On 28/09/2023 17:21, Егор Зиборов wrote:
> Hello, everyone
>
> I'm new there and writing this letter during advice of Dalibor Topic
>
> I faced an issue with SOE in ThreadLocal and want to add this java9 annotation on ThreadLocal#set. Does anyone have any concerns about it?
>
This annotation is for very core/critical areas that are particularly 
sensitive to SO. Did the SO that you observe just happen to be in 
ThreadLocal.set or is there more to this story? Asking because there are 
dozens places in java.base where the argument could be made but we have 
to be very careful to not sprinkle it about.

-Alab



More information about the core-libs-dev mailing list