Re: Java 21, virtual threads and ThreadLocals

2023-05-09 Thread Mark Thomas
On 05/05/2023 21:49, Rémy Maucherat wrote: The second question is what do we want to do about usages such as this. With virtual threads the end result will be, effectively, a new object for every request. Do we: a) Leave the code as-is. It will work as currently with a thread pool and virtual t

Re: Java 21, virtual threads and ThreadLocals

2023-05-05 Thread koteswara Rao Gundapaneni
Hi When it becomes virtual threads and Threadlocal to select with Virtual threads is great option To clarify more Cluster is no message between the nodes but synchronized the cluster Regards Koti On Fri, 5 May 2023, 20:58 Mark Thomas, wrote: > Hi all, > > I've started to review the use of T

Re: Java 21, virtual threads and ThreadLocals

2023-05-05 Thread Rémy Maucherat
On Fri, May 5, 2023 at 5:28 PM Mark Thomas wrote: > > Hi all, > > I've started to review the use of ThreadLocal within the Tomcat code > base given that using virtual threads will soon be an option. > > The first usage I came to raised a few questions. The usage is in > ApplicationContext: > > htt

Java 21, virtual threads and ThreadLocals

2023-05-05 Thread Mark Thomas
Hi all, I've started to review the use of ThreadLocal within the Tomcat code base given that using virtual threads will soon be an option. The first usage I came to raised a few questions. The usage is in ApplicationContext: https://github.com/apache/tomcat/blob/main/java/org/apache/catalin