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

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

XMLWordPrintable

    • gc
    • b08

        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.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: