Thread::currentThread() intrinsic doesn't need memory state, since current thread can't be changed during method activation.
It helps with optimising thread checks by forcing all thread checks to share a single value representing current thread.
(The optimisation should be revisited in Project Loom, since it may be affected by how continuations are implemented.)
It helps with optimising thread checks by forcing all thread checks to share a single value representing current thread.
(The optimisation should be revisited in Project Loom, since it may be affected by how continuations are implemented.)
- relates to
-
JDK-8224996 Investigate memory access C2 optimizations
-
- Closed
-