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

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

      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.

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

              Created:
              Updated:
              Resolved: