Test failure on MacOS/AArch64

Andrew Haley aph at redhat.com
Tue Jun 29 16:44:59 UTC 2021


On 6/29/21 11:19 AM, Aleksey Shipilev wrote:
> On 6/29/21 10:51 AM, Aleksey Shipilev wrote:
>> On 6/29/21 10:44 AM, Andrew Haley wrote:
>>>> And it's reproducible on MacOS but not Linux. I am trying to get my head
>>>> around why that might be, but I'll leave that to y'all.  :-)
>>>
>>> Received: Shenandoah Pauses
>>> Received: Shenandoah Pauses
>>> Received: Shenandoah Cycles
>>> STDERR:
>>> java.lang.IllegalStateException: Pauses expected = [1; +inf], actual = 0
>>
>> You might laugh a bit, but I think this happens because all pauses are below 1ms, so GcInfo
>> resolution is not enough to capture it. So the sum of all pauses is zero, which fails the test :D
> 
> Updated that PR to avoid counting sum of pauses:
>    https://github.com/openjdk/jdk/pull/4611
> 
> Please try to run with it?

I had to look to check, but this branch really is

commit 029ed18f5a72e41a055478a28fda84a1516ece12 (HEAD -> pull/4611)
Author: Aleksey Shipilev <shade at redhat.com>
Date:   Mon Jun 28 17:38:12 2021 +0200

    Rework tests for much better reliability, passes slowdebug+Xcomp

but still:

STDERR:
java.lang.IllegalStateException: Pauses expected = [1; +inf], actual = 0
Cycles expected = [1; +inf], actual = 67
Pauses duration (0) is expected to be smaller than cycles duration (67)
	at TestPauseNotifications.main(TestPauseNotifications.java:190)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.IllegalStateException: Pauses expected = [1; +inf], actual = 0
Cycles expected = [1; +inf], actual = 67
Pauses duration (0) is expected to be smaller than cycles duration (67)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: Pauses expected = [1; +inf], actual = 0 Cycles expected = [1; +inf], actual = 67 Pauses duration (0) is expected to be smaller than cycles duration (67)
rerun:
cd /Users/aph/theRealAph-jdk/build/macosx-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_gc_shenandoah_mxbeans_TestPauseNotifications_java/scratch/2 && \
HOME=/Users/aph \
JDK8_HOME=/Users/aph/zulu16.30.19-ca-jdk16.0.1-macosx_aarch64 \
LANG=en_GB.UTF-8 \
LC_ALL=C \
LC_CTYPE=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/Users/aph/theRealAph-jdk/build/macosx-aarch64-server-release/images/test \
CLASSPATH=/Users/aph/theRealAph-jdk/build/macosx-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_gc_shenandoah_mxbeans_TestPauseNotifications_java/classes/0/gc/shenandoah/mxbeans/TestPauseNotifications_id3.d:/Users/aph/theRealAph-jdk/test/hotspot/jtreg/gc/shenandoah/mxbeans:/Users/aph/theRealAph-jdk/build/macosx-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_gc_shenandoah_mxbeans_TestPauseNotifications_java/classes/0/test/lib:/Users/aph/theRealAph-jdk/test/lib:/Users/aph/theRealAph-jdk/build/macosx-aarch64-serv

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the shenandoah-dev mailing list