JDK-8307493 : Use thread register C2MacroAssembler::fast_lock()
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: x86
  • Submitted: 2023-05-04
  • Updated: 2023-05-05
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.
Other
tbdUnresolved
Related Reports
Blocks :  
Description
In the 32-bit section of C2MacroAssembelr::fast_lock() we first CAS a stack-pointer and after this has been successful, fetch the current thread and store that into the stack-lock. With JDK-8291555 we can simply use the thread-register that's passed into fast_lock() and can avoid the intermediate store.
Also, fix the clearing of tmp register to use xorl, as the comment says.