Shenandoah testing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Shenandoah testing

Δημήτρης Μπακαλιος
Hello all,
I am currently trying to test graal using shenandoah gc.
i follow the instructions bellow:
on the jdk :
bash configure --with-boot-jdk=/opt/jvms/jdk-14.0.2 --with-jtreg=/opt/jtreg
make graal-builder-image
make run-test TEST="hotspot/jtreg/gc/shenandoah"
export JAVA_HOME=path/to/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk
/opt/jtreg/bin/jtreg -v -vmoptions:"-XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+UnlockDiagnosticVMOptions -XX:+UseJVMCICompiler" ~/jdk/test/hotspot/jtreg/gc/shenandoah
and the output is:Test results: no tests selected
When i change the tests path from 
~/jdk/test/hotspot/jtreg/gc/shenandoah
to:
~/jdk/test/hotspot/jtreg/gc
it starts running all the tests located there and my professor who used the same instructions had it working fine.
jdk commit e2196f8882b9237926c3ff208bc971c5c31faac7
openjdk 16-internal 2021-03-16
OpenJDK Runtime Environment (build 16-internal+0-adhoc.bakdim.jdk)
OpenJDK 64-Bit Server VM (build 16-internal+0-adhoc.bakdim.jdk, mixed mode, sharing) 

jtreg, version 5.1 dev 885
Installed in /opt/jtreg/lib/jtreg.jar
Running on platform version 16-internal from /home/bakdim/Documents/thesis/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk.
Built with Java(TM) 2 SDK, Version 1.8.0_172-b11 on September 21, 2020.
Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms.
JT Harness, version 6.0 ea b11 (September 21, 2020)
JCov 3.0-2
TestNG (testng.jar): version unknown
TestNG (jcommander.jar): version 1.72
Java Assembler Tools, version 7.0 beta b02 (September 21, 2020)
does anyone have any clue on why this happens?
Thank you in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Shenandoah testing

David Holmes
Hi,

On 2/10/2020 12:08 am, Δημήτρης Μπακαλιος wrote:

> Hello all,
> I am currently trying to test graal using shenandoah gc.
> i follow the instructions bellow:
> on the jdk :
>
> bash configure --with-boot-jdk=/opt/jvms/jdk-14.0.2 --with-jtreg=/opt/jtreg
>
> make graal-builder-image
>
> make run-test TEST="hotspot/jtreg/gc/shenandoah"
>
> export JAVA_HOME=path/to/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk
>
> /opt/jtreg/bin/jtreg -v -vmoptions:"-XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+UnlockDiagnosticVMOptions -XX:+UseJVMCICompiler" ~/jdk/test/hotspot/jtreg/gc/shenandoah
>
> and the output is:Test results: no tests selected

Are you actually testing a JDK that includes the ShenandoahGC? I suspect
not, and as all Shendandoh tests have

  @requires vm.gc.Shenandoah

then you will get "no tests selected"

David
-----

> When i change the tests path from
>
> ~/jdk/test/hotspot/jtreg/gc/shenandoah
>
> to:
>
> ~/jdk/test/hotspot/jtreg/gc
>
> it starts running all the tests located there and my professor who used the same instructions had it working fine.
>
> jdk commit e2196f8882b9237926c3ff208bc971c5c31faac7
>
> openjdk 16-internal 2021-03-16
> OpenJDK Runtime Environment (build 16-internal+0-adhoc.bakdim.jdk)
>
> OpenJDK 64-Bit Server VM (build 16-internal+0-adhoc.bakdim.jdk, mixed
> mode, sharing)  
>
>
> jtreg, version 5.1 dev 885
> Installed in /opt/jtreg/lib/jtreg.jar
> Running on platform version 16-internal from /home/bakdim/Documents/thesis/jdk/build/linux-x86_64-server-release/images/graal-builder-jdk.
> Built with Java(TM) 2 SDK, Version 1.8.0_172-b11 on September 21, 2020.
> Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
> Use is subject to license terms.
> JT Harness, version 6.0 ea b11 (September 21, 2020)
> JCov 3.0-2
> TestNG (testng.jar): version unknown
> TestNG (jcommander.jar): version 1.72
> Java Assembler Tools, version 7.0 beta b02 (September 21, 2020)
>
> does anyone have any clue on why this happens?
>
> Thank you in advance.
>