[jdk17u-dev] RFR: 8271707: migrate tests to use jdk.test.whitebox.WhiteBox
Goetz Lindenmaier
goetz at openjdk.org
Wed Jun 14 05:43:43 UTC 2023
I backport this for parity with 17.0.8-oracle.
I had to resolve a row of files, also quite some test are just not in 17.
I grepped through the tests and fixed all remaining occurances, too.
Here the files I resolved:
test/hotspot/jtreg/compiler/allocation/TestFailedAllocationBadGraph.java
Already fixed.
test/hotspot/jtreg/compiler/c2/irTests/TestSuperwordFailsUnrolling.java
Fixed.
Tests not in 17, patch skipped:
test/hotspot/jtreg/compiler/ciReplay/TestDumpReplayCommandLine.java
test/hotspot/jtreg/compiler/ciReplay/TestInlining.java
test/hotspot/jtreg/compiler/ciReplay/TestLambdas.java
test/hotspot/jtreg/compiler/ciReplay/TestNoClassFile.java
test/hotspot/jtreg/compiler/ciReplay/TestUnresolvedClasses.java
test/hotspot/jtreg/compiler/jvmci/compilerToVM/IterateFramesNative.java
test/hotspot/jtreg/compiler/rangechecks/TestLongRangeCheck.java
test/hotspot/jtreg/compiler/regalloc/TestC2IntPressure.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayCopyTest.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayIndexFillTest.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayInvariantFillTest.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayShiftOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayTypeConvertTest.java
test/hotspot/jtreg/compiler/vectorization/runner/ArrayUnsafeOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicBooleanOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicByteOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicCharOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicDoubleOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicFloatOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicIntOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicLongOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/BasicShortOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopArrayIndexComputeTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopCombinedOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopControlFlowTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopLiveOutNodesTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopRangeStrideTest.java
test/hotspot/jtreg/compiler/vectorization/runner/LoopReductionOpTest.java
test/hotspot/jtreg/compiler/vectorization/runner/MultipleLoopsTest.java
test/hotspot/jtreg/compiler/vectorization/runner/StripMinedLoopTest.java
test/hotspot/jtreg/compiler/vectorization/runner/VectorizationTestRunner.java
test/hotspot/jtreg/gc/TestReferenceClearDuringReferenceProcessing.java
Fixed already
test/hotspot/jtreg/gc/arguments/TestSmallInitialHeapWithLargePageAndNUMA.java
Resolved
test/hotspot/jtreg/gc/arguments/TestVerifyBeforeAndAfterGCFlags.java
Does not use Whitebox in 17. Skipped.
Tests not in 17, patch skipped:
test/hotspot/jtreg/gc/g1/TestEvacuationFailure.java
test/hotspot/jtreg/gc/g1/TestGCLogMessages.java
Does not use Whitebox in 17. Skipped.
test/hotspot/jtreg/gc/g1/TestNoEagerReclaimOfHumongousRegions.java
Resolved.
test/hotspot/jtreg/gc/g1/TestSkipRebuildRemsetPhase.java
Resolved.
test/hotspot/jtreg/gc/g1/numa/TestG1NUMATouchRegions.java
Resolved.
Tests not in 17, patch skipped:
test/hotspot/jtreg/runtime/ClassUnload/UnloadTestWithVerifyDuringGC.java
test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Does not use Whitebox in 17. Skipped.
test/hotspot/jtreg/runtime/cds/DumpSymbolAndStringTable.java
Does not use Whitebox in 17. Skipped.
test/hotspot/jtreg/runtime/cds/SharedStringsWb.java
Copyright
test/hotspot/jtreg/runtime/cds/appcds/cacheObject/GCStressApp.java
Copyright
test/hotspot/jtreg/runtime/cds/appcds/cacheObject/RedefineClassApp.java
Copyright
test/hotspot/jtreg/runtime/cds/appcds/customLoader/HelloCustom.java
Resolved
test/hotspot/jtreg/runtime/cds/appcds/customLoader/SameNameInTwoLoadersTest.java
Resolve.
test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/OldClassApp.java
Resolved.
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ArchiveConsistency.java
Resolved.
Tests not in 17, patch skipped:
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DumpToDefaultArchive.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DuplicatedCustomTest.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaForOldInfInBaseArchive.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LotsUnloadTest.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ModulePath.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/NestHostOldInf.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/OldClassInBaseArchive.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/RedefineCallerClassTest.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/TestAutoCreateSharedArchive.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/TestLambdaInvokers.java
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes/DuplicatedCustomApp.java
test/hotspot/jtreg/runtime/cds/appcds/javaldr/GCSharedStringsDuringDumpWb.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/jcmd/JCmdTestDynamicDump.java
Resolved.
test/hotspot/jtreg/runtime/cds/appcds/jcmd/JCmdTestFileSafety.java
Resolved.
test/hotspot/jtreg/runtime/cds/appcds/jcmd/JCmdTestStaticDump.java
Resolved.
test/hotspot/jtreg/runtime/cds/appcds/redefineClass/RedefineRunningMethods_Shared.java
Resolved.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/HelloStringGC.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/HelloStringPlus.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/InternStringTest.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/LockStringTest.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/LockStringValueTest.java
Copyright.
test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsWb.java
Copyright.
test/hotspot/jtreg/runtime/cds/serviceability/ReplaceCriticalClassesForSubgraphs.java
Resolved.
test/hotspot/jtreg/runtime/handshake/HandshakeDirectTest.java
Does not use Whitebox, skipped.
test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestCompLevels.java
Resolved.
test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestControls.java
Resolved.
test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestIRMatching.java
Resolved.
test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java
Resolved.
test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002a.java
Resolved
test/jdk/java/foreign/stackwalk/TestAsyncStackWalk.java
Resolved.
test/jdk/java/foreign/stackwalk/TestStackWalk.java
Resolved
Tests not in 17, patch skipped:
test/jdk/java/foreign/upcalldeopt/TestUpcallDeopt.java
test/jdk/java/lang/ref/CleanerTest.java
Resolved.
Tests not in 17, patch skipped:
test/jdk/jdk/internal/vm/Continuation/Fuzz.java
test/jdk/jdk/jfr/api/consumer/TestRecordedFrameType.java
test/lib/jdk/test/lib/cds/CDSArchiveUtils.java
-------------
Commit messages:
- Fix some occurances not captured by the patch.
- Backport e7795851d2e02389e63950fef939084b18ec4bfb
Changes: https://git.openjdk.org/jdk17u-dev/pull/1434/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1434&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8271707
Stats: 2878 lines in 933 files changed: 6 ins; 0 del; 2872 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/1434.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1434/head:pull/1434
PR: https://git.openjdk.org/jdk17u-dev/pull/1434
More information about the jdk-updates-dev
mailing list