jcstress tests

Aleksey Shipilev aleksey.shipilev at gmail.com
Wed Aug 17 18:17:42 UTC 2016


On 08/17/2016 09:11 PM, Johnson, Andy wrote:
> We are running with a build based on jdk8u60.  I notice that
> tests-all reports that there are 6070 tests, but that 926 of them
> report "Sanity check failed, API mismatch?", so only 5144 tests are
> actually run.  Is this intentional? I know that the tests must be
> built with jdk-9 build 127 or later, but I was under the impression
> that the tests would run with any jdk-8 build.  I didn't realize that
> so many tests would be skipped, due to class versioning errors.  Is
> there a way to modify the build process so that the results of the
> build are class version 52, or are these 926 tests really intended
> for jdk-9 builds only?

When possible, we build with -source/target 8 (which is class file
52.0). When we are using the JDK 9 APIs, we set -source/target 9 (which
is class file 53.0). There a lots of VarHandles tests now, which you
cannot run on JDK 8. Distribution between chapters helps to set
per-test-group source/target, and maybe we can separate tests-all-jdk8
and tests-all-jdk9, if this is a pressing issue (I don't think it is).

Anyhow, those failures are soft ones, and can be ignored on JDK 8.

Thanks,
-Aleksey





More information about the jcstress-dev mailing list