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

runtime/Thread/StopAtExit.java failing in loom repo

    XMLWordPrintable

Details

    Description

      This test depends on a private method in ThreadGroup and book keeping that does not exist in the loom repo. In addition the async exception leads to exceptions in class loading when the victim thread exits - this surfaces in the main thread when it attempts to invoke a method in that class.

      Exception: java.lang.ThreadDeath thrown from the UncaughtExceptionHandler in thread "Thread-1"
      java.lang.NoClassDefFoundError: Could not initialize class java.lang.Thread$State
      at java.base/jdk.internal.misc.VM.toThreadState(VM.java:348)
      at java.base/java.lang.Thread.threadState(Thread.java:2777)
      at java.base/java.lang.Thread.getThreadGroup(Thread.java:1963)
      at java.base/java.lang.ThreadGroup.activeCount(ThreadGroup.java:364)
      at StopAtExit.main(StopAtExit.java:127)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1532)

      Excluding the test for now, need to decide if this test should be deleted in the loom repo.

      Attachments

        Issue Links

          Activity

            People

              dcubed Daniel Daugherty
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: