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

Refactor vmTestbase stress framework to use j.u.c and make creation of threads more flexible

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • 15
    • hotspot
    • None
    • b16

    Description

      There are a lot of stress tests in vmTestbase using nsk stress framework. This refactoring helps to add virtual threads testing support.

      The Wicket uses plain sync/wait/notify mechanism which might cause carrier thread starvation and should be used in virtual threads.

      The ManagedThread is a subclass of Thread so it couldn't be virtual thread.

      Following fix changes Wicket to use locks and atomics and don't pin vthread to carrier thread while start testing.
      ManagedThread is fixed to keep execution thread as the thread variable.

      Attachments

        Activity

          People

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: