Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322744

VirtualThread.notifyJvmtiDisableSuspend should be static

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 23
    • 23
    • hotspot
    • b07

    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.

      Attachments

        Issue Links

          Activity

            People

              sspitsyn Serguei Spitsyn
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: