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

test failure java/lang/management/ThreadMXBean/ResetPeakThreadCount.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • core-svc

      Test is failing sometimes on 64bit Linux Fedora 9 systems, java/lang/management/ThreadMXBean/ResetPeakThreadCount.java

      test is run as 'othervm' test so it's not clear why it sometimes passes, sometimes fails.


      --------------------------------------------------
      TEST: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java
      JDK under test: (/tmp/jprt/P2/T/154735.ohair/testproduct/linux_x64_2.6-product)
      java version "1.7.0-201005091547.ohair.jdk"
      Java(TM) SE Runtime Environment (build 1.7.0-201005091547.ohair.jdk-jprtadm_2010_05_09_08_52-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 18.0-b04, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build ResetPeakThreadCount
      TIME: 0.023 seconds
      messages:
      command: build ResetPeakThreadCount
      reason: User specified action: run build ResetPeakThreadCount
      elapsed time (seconds): 0.023

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.023 seconds
      messages:
      command: compile /tmp/jprt/P2/T/154735.ohair/source/test/java/lang/management/ThreadMXBean/ResetPeakThreadCount.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.023

      ACTION: build -- Passed. All files up to date
      REASON: User specified action: run build ThreadDump
      TIME: 0.0 seconds
      messages:
      command: build ThreadDump
      reason: User specified action: run build ThreadDump
      elapsed time (seconds): 0.0

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.0 seconds
      messages:
      command: build ResetPeakThreadCount
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Current Peak = 16 Expected to be == previous peak = 11 + 4
      REASON: User specified action: run main/othervm ResetPeakThreadCount
      TIME: 0.309 seconds
      messages:
      command: main ResetPeakThreadCount
      reason: User specified action: run main/othervm ResetPeakThreadCount
      elapsed time (seconds): 0.309
      STDOUT:
      Starting 8 threads....
         Current = 13 Peak before = 5 after: 13
         Live thread count before returns 13
      Terminating 4 threads....
         Live thread count before returns 9
      Starting 2 threads....
         Current = 11 Peak before = 13 after: 13
         Live thread count before returns 11
      Reset peak before = 13 current = 11 after reset peak = 11 current = 11
      Starting 4 threads....
         Current = 15 Peak before = 11 after: 16
      STDERR:
      java.lang.RuntimeException: Current Peak = 16 Expected to be == previous peak = 11 + 4
      at ResetPeakThreadCount.startThreads(ResetPeakThreadCount.java:141)
      at ResetPeakThreadCount.main(ResetPeakThreadCount.java:99)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:717)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Current Peak = 16 Expected to be == previous peak = 11 + 4
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Current Peak = 16 Expected to be == previous peak = 11 + 4

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Current Peak = 16 Expected to be == previous peak = 11 + 4
      --------------------------------------------------

            dcubed Daniel Daugherty
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: