JDK-8265753 : Remove manual JavaThread transitions to blocked
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-22
  • Updated: 2021-07-26
  • Resolved: 2021-05-28
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 17
17 b25Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
There are manual transitions to thread_blocked in ObjectMonitor and RawMonitor code. The reason for the manual transition is because some action needs to be performed before processing handshakes/safepoints.

One suggestion is to add a function, e.g., a template, to the transition RAII object.
Comments
Changeset: 97ec5ad0 Author: Robbin Ehn <rehn@openjdk.org> Date: 2021-05-28 07:30:14 +0000 URL: https://git.openjdk.java.net/jdk/commit/97ec5ad0a6ed2cd87a9c75b0559e9bb55b72121e
28-05-2021