JDK-8235143 : C2: No memory state needed in Thread::currentThread() intrinsic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-29
  • Updated: 2020-09-29
  • Resolved: 2019-12-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b27Fixed
Related Reports
Relates :  
Description
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.)
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/c3203a6a2ed4 User: vlivanov Date: 2019-12-09 17:05:55 +0000
09-12-2019