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

[TEST_BUG] java/lang/management/ThreadMXBean/SynchronizationStatistics.java intermittently failed with NPE

XMLWordPrintable

        This happened twice in same binaries run for jdk9 promotion b46. By querying test history, it seems to be a new failure. This is rare, twice out of 81 runs

        Please refer to the test output below. lockName is unexpected to be null.

        ----------System.out:(11/294)----------
        testBlockingOnSimpleMonitor
        Lock1 = java.lang.Object@2a8a021c
        [LockerThread obtained Lock1]
        testBlocked: [2, 0, java.lang.Object@2a8a021c]
        OK

        testBlockingOnNestedMonitor
        Lock1 = java.lang.Object@d443c99
        Lock2 = java.lang.Object@2c1c17b2
        [LockerThread obtained Lock1]
        testBlocked: [1, 0, null]
        ----------System.err:(15/860)----------
        java.lang.NullPointerException
        at SynchronizationStatistics.testBlocked(SynchronizationStatistics.java:403)
        at SynchronizationStatistics.testBlockingOnNestedMonitor(SynchronizationStatistics.java:166)
        at SynchronizationStatistics.main(SynchronizationStatistics.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.lang.NullPointerException

              jbachorik Jaroslav Bachorík
              xiaofeya Xiaofeng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: