-
Bug
-
Resolution: Fixed
-
P4
-
11.0.5, 13
-
b23
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225842 | 14 | Gustavo Romero | P4 | Resolved | Fixed | team |
JDK-8226701 | 11.0.5 | Gustavo Romero | P4 | Resolved | Fixed | b01 |
Making RTM tests dependent on Unsafe native methods turns the jtreg RTM tests brittle. The native methods in Unsafe are used by the RTM tests as transactional abort provokers so the tests can abort a transaction in a controlled way to see if JVM is responding correctly.
This is the second time the RTM tests are broken because the native method they rely on is converted to a non-native method.
As such a trend (from native to non-native) is really expected over time in the libraries, it's necessary to craft an isolated native lib only for the RTM tests so they don't break as the libraries evolve.
The following tests are falling as consequence both on x86_64 and PPC64:
FAILED: compiler/rtm/locking/TestRTMAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMAbortThreshold.java
FAILED: compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java
FAILED: compiler/rtm/locking/TestRTMDeoptOnHighAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMLockingCalculationDelay.java
FAILED: compiler/rtm/locking/TestRTMLockingThreshold.java
FAILED: compiler/rtm/locking/TestUseRTMDeopt.java
FAILED: compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java
This is the second time the RTM tests are broken because the native method they rely on is converted to a non-native method.
As such a trend (from native to non-native) is really expected over time in the libraries, it's necessary to craft an isolated native lib only for the RTM tests so they don't break as the libraries evolve.
The following tests are falling as consequence both on x86_64 and PPC64:
FAILED: compiler/rtm/locking/TestRTMAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMAbortThreshold.java
FAILED: compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java
FAILED: compiler/rtm/locking/TestRTMDeoptOnHighAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java
FAILED: compiler/rtm/locking/TestRTMLockingCalculationDelay.java
FAILED: compiler/rtm/locking/TestRTMLockingThreshold.java
FAILED: compiler/rtm/locking/TestUseRTMDeopt.java
FAILED: compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java
- backported by
-
JDK-8225842 jtreg: Decouple Unsafe from RTM tests
- Resolved
-
JDK-8226701 jtreg: Decouple Unsafe from RTM tests
- Resolved
- relates to
-
JDK-8204134 jtreg: Fix RTM abort provoker for various tests after "8149159: Clean up Unsafe"
- Resolved
-
JDK-8221477 Inject os/cpu-specific constants into Unsafe from JVM
- Resolved
-
JDK-8225663 [testbug] Missing JNIEXPORT in XAbortProvoker native function
- Resolved