JDK-8322744 : VirtualThread.notifyJvmtiDisableSuspend should be static
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-12-26
  • Updated: 2024-01-23
  • Resolved: 2024-01-19
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 23
23 masterFixed
Related Reports
Relates :  
Description
This method disables/enables suspend of the current virtual thread, a no-op if the current thread is a platform thread. It is confusing for this to be an instance method, it should be static to make it clearer that it doesn't change the target thread.
The method VirtualThread.notifyJvmtiHideFrames also should be static as it does not use/need the virtual thread `this` argument.
Comments
Changeset: 8700de66 Author: Serguei Spitsyn <sspitsyn@openjdk.org> Date: 2024-01-19 18:40:55 +0000 URL: https://git.openjdk.org/jdk/commit/8700de66e45b526958c7a2923d43abe2a736d1d2
19-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17298 Date: 2024-01-08 07:55:45 +0000
08-01-2024