Current jcstress uses JNA for affinity setup. It causes lots of warnings when running with JDK 25:
.......... [OK] o.o.j.t.fences.UnfencedDekkerTest
Scheduling class:
actor1: package group 0, core group 0
actor2: package group 0, core group 0
CPU allocation:
actor1: CPU #3 (package #0, core #3, thread #3)
actor2: CPU #19 (package #0, core #3, thread #19)
Compilation: split
actor1: C2
actor2: Interpreter
JVM args: []
Fork: #1
RESULT SAMPLES FREQ EXPECT DESCRIPTION
0, 0 25,430 0.04% Interesting Acceptable with no sequential consistency enforced
0, 1 57,473,597 99.55% Acceptable Acceptable under sequential consistency
1, 0 226,752 0.39% Acceptable Acceptable under sequential consistency
1, 1 5,312 <0.01% Acceptable Acceptable under sequential consistency
VM error stream:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.sun.jna.Native in an unnamed module (file:/home/shade/trunks/shipilev-jcstress/tests-custom/target/jcstress.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
.......... [OK] o.o.j.t.fences.UnfencedDekkerTest
Scheduling class:
actor1: package group 0, core group 0
actor2: package group 0, core group 0
CPU allocation:
actor1: CPU #3 (package #0, core #3, thread #3)
actor2: CPU #19 (package #0, core #3, thread #19)
Compilation: split
actor1: C2
actor2: Interpreter
JVM args: []
Fork: #1
RESULT SAMPLES FREQ EXPECT DESCRIPTION
0, 0 25,430 0.04% Interesting Acceptable with no sequential consistency enforced
0, 1 57,473,597 99.55% Acceptable Acceptable under sequential consistency
1, 0 226,752 0.39% Acceptable Acceptable under sequential consistency
1, 1 5,312 <0.01% Acceptable Acceptable under sequential consistency
VM error stream:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.sun.jna.Native in an unnamed module (file:/home/shade/trunks/shipilev-jcstress/tests-custom/target/jcstress.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
- links to
-
Review(master) openjdk/jcstress/171