-
Notifications
You must be signed in to change notification settings - Fork 223
8271707: migrate tests to use jdk.test.whitebox.WhiteBox #1434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Huge change, but complexity is not very high. Thanks for the detailed description and for splitting backport and new adaptations into 2 commits.
@@ -54,7 +54,7 @@ public static void main(String[] args) throws Exception { | |||
customJar = JarBuilder.build("SameNameInTwoLoadersTest_custom", "CustomLoadee", "CustomLoadee3"); | |||
|
|||
useWbParam = "-Xbootclasspath/a:" + | |||
JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox");; | |||
JarBuilder.build(true, "WhiteBox", "jdk/test/whitebox/WhiteBox");; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New code has only one ';'. Feel free to remove one (accept new code). Not required.
@GoeLin This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 12 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 2bed865.
Your commit was automatically rebased without conflicts. |
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
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/1434/head:pull/1434
$ git checkout pull/1434
Update a local copy of the PR:
$ git checkout pull/1434
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/1434/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1434
View PR using the GUI difftool:
$ git pr show -t 1434
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/1434.diff
Webrev
Link to Webrev Comment