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

ThreadLists.java inconsistent results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-svc

        The java/lang/management/ThreadMXBean/ThreadLists.java occasionally fails on GraalVM, most likely due to not accounting for JVMCI threads being Java threads.

        ----------System.out:(23/635)----------
        Starting Test
        Initial set of enumerated threads:
         - Thread: main
         - Thread: Reference Handler
         - Thread: Finalizer
         - Thread: Signal Dispatcher
         - Thread: JVMCI-native CompilerThread0
         - Thread: Common-Cleaner
         - Thread: Notification Thread
         - Thread: MainThread
        ThreadGroup: 8 active thread(s)
        Thread: 8 stack trace(s) returned
        ThreadMXBean: 11 live threads(s)
        ThreadMXBean: 11 thread Id(s)
        Set of stack-traced threads:
         - Thread: Signal Dispatcher
         - Thread: Notification Thread
         - Thread: MainThread
         - Thread: Finalizer
         - Thread: Reference Handler
         - Thread: Common-Cleaner
         - Thread: JVMCI-native CompilerThread0
         - Thread: main
        ----------System.err:(11/612)----------
        java.lang.RuntimeException: inconsistent results
        at ThreadLists.main(ThreadLists.java:91)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1623)

              kevinw Kevin Walls
              dnsimon Douglas Simon
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: