[RFR]: Update/add some tests

Arthur Eubanks aeubanks at google.com
Tue Apr 2 22:39:52 UTC 2019


http://cr.openjdk.java.net/~aeubanks/tsantests/webrev.00/index.html

I'll let the commit message do the talking:

Add native code that can be called by TSAN tests.
Add runTsanTestExpectFailure/Success to TsanRunner so tests don't have
to repeat the success/failure checks.
Add two native tests, one racy, one not. (right now some JVM races are
reported so the non-racy one fails)

"make test" doesn't work since it doesn't work with LD_PRELOAD. Instead, run:
$ make jdk-image test-image
$ JTREG=path/to/jtreg
$ JDK_ROOT=path/to/tsan_jdk
$ $JTREG -e:LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/8/libtsan.so
-jdk:$JDK_ROOT/build/images/jdk/
-nativepath:$JDK_ROOT/build/images/test/hotspot/jtreg/native/
$JDK_ROOT/test/hotspot/jtreg/tsan/
where $JDK_ROOT must be an absolute path because -nativepath only
works with an absolute path.


More information about the tsan-dev mailing list