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

VirtualThread.notifyJvmtiDisableSuspend should be static

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: