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

Shenandoah: gc/shenandoah/mxbeans tests should account for corner cases

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b08

      Backports

        Description

        Caught a very intermittent test failure in sh/jdk8 testing:

        STDOUT:
        Pauses expected = [1; 9223372036854775807], actual = 209
        Cycles expected = [1; 9223372036854775807], actual = 209
        STDERR:
        java.lang.IllegalStateException: Cycle duration (209), pause duration (209)
        at TestPauseNotifications.main(TestPauseNotifications.java:176)
        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.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(Thread.java:748)

        But in STW mode, "cycle time" can equal "pause time". The test condition is not correct.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: