FW: is this a bug ?

Yangfei (Felix) felix.yang at huawei.com
Thu Oct 17 01:17:22 UTC 2019


> -----Original Message-----
> From: Aleksey Shipilev [mailto:shade at redhat.com]
> Sent: Wednesday, October 16, 2019 9:54 PM
> To: Yangfei (Felix) <felix.yang at huawei.com>; jcstress-dev at openjdk.java.net
> Cc: Andrew Haley <aph at redhat.com>
> Subject: Re: FW: is this a bug ?
> 
> "-XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-RestrictContended
> -XX:ReservedCodeCacheSize=128M" does not make sense in this context:
> jcstress would fork the JVMs and set up their own command line options,
> enabling WhiteBoxAPI and @Contended along the way.

Yes, I also noticed this issue when I was offered this command.  

> It looks like heap overflow, which is not surprising, given the ByteBuffer tests
> and the very old jcstress, which misses at least this fix:
>   https://hg.openjdk.java.net/code-tools/jcstress/rev/0eecf3f89210

OKAY. 

> > Note that I am using an old jcstress version in order to run it with a 8u jdk.  I
> execute " hg update -r 0de8079ec104 " to get the old version.
> 
> Why? Current jcstress requires JDK 11 to build, but it can run with JDK 8 (it
> would yield some "soft errors" on tests that are not executable with JDK 8).

I think that affects our testing team and makes them go back to the old version for 8u testing purpose.  
Let me communicate with them about that.  

> 0de8079ec104 is very, very, very old and misses many important harness and
> test fixes.
>
> I took the today's build of jcstress:
>   https://builds.shipilev.net/jcstress/jcstress-tests-all-20191016.jar
> 
> ...and today's 8u232:
> 
> https://builds.shipilev.net/openjdk-jdk8/openjdk-jdk8-latest-linux-x86_64-releas
> e.tar.xz
> 
> ...and it runs to completion:
> 
> $ jdk8u232/bin/java -jar jcstress.jar -t
> ByteBufferViewsAtomicityTests.LongViewTest -time 50000
> 

The latest jcstress version works for me too.  We will switch to the latest jcstress version for 8u testing.  
Thanks for the clarification.  It is very helpful.  

Felix


More information about the jcstress-dev mailing list