JDK-8288040 : x86: Loom: Improve cont/monitor-count helper methods
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-08
  • Updated: 2022-06-10
  • Resolved: 2022-06-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 19
19 b26Fixed
Related Reports
Blocks :  
Description
When doing x86_32 port, I realized that cont helper methods are sensitive to `rsp`, which makes the usual trick of using a scratch register for `thread` dangerous. We can just lift the entire thread-acquisition business into the methods themselves. Related to that, we can also do the same thing for monitor-count helper methods, thus fully isolating them from the caller code. It would be even better after JDK-8286957.

This does the shared code change, so that x86_32 port can hopefully continue as late enhancement after RDP1.
Comments
Changeset: e5b56baf Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-06-09 08:16:22 +0000 URL: https://git.openjdk.java.net/jdk/commit/e5b56bafa9ed68dec82adebc3eb298b70df7faeb
09-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/9086 Date: 2022-06-08 15:21:55 +0000
08-06-2022