Re: [External] : Re: ThreadLocal lookup elimination

2021-03-05 Thread Eirik Bjørsnøs
> > But before that. Alan Bateman said to me that Loom project has much > simpler implementation to what you want. > Ahh! Another good reason why I'm seriously considering just going to the beach and returning once Loom is shipped! :-) Can't do that. JIT have to update underlying hash table to co

Re: [External] : Re: ThreadLocal lookup elimination

2021-03-05 Thread Vladimir Kozlov
Eirik See my answers bellow. But before that. Alan Bateman said to me that Loom project has much simpler implementation to what you want. Thread local scopedCache which is Object[] array referenced from current thread: https://github.com/openjdk/loom/blob/fibers/src/java.base/share/classes/jav