RFR: 8343889: Test runtime/cds/appcds/redefineClass/RedefineBasicTest.java failed
Calvin Cheung
ccheung at openjdk.org
Wed Nov 13 19:32:16 UTC 2024
Fixing the tests under `test/hotspot/jtreg/runtime/cds/appcds/jvmti/redefineClasses` so that the `@run driver RedefineClassHelper` before any `@build` command so that subsequent tests can find classes under the` test.lib.helpers` package such as the `ClassFileInstaller` class.
Revert the changes, which was done via JDK-8342303, to the following tests as the changes are not needed with the current fix.
test/hotspot/jtreg/runtime/cds/appcds/redefineClass/RedefineBasicTest.java
test/hotspot/jtreg/runtime/cds/appcds/redefineClass/RedefineRunningMethods_Shared.java
test/hotspot/jtreg/runtime/logging/RedefineClasses.java
This change also adds `@requires vm.cds` to the tests so it also fixes JDK-8344046.
Testing:
- passed tiers 1, 4 tests
-------------
Commit messages:
- 8343889: Test runtime/cds/appcds/redefineClass/RedefineBasicTest.java failed
Changes: https://git.openjdk.org/jdk/pull/22085/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22085&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8343889
Stats: 13 lines in 6 files changed: 3 ins; 4 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/22085.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22085/head:pull/22085
PR: https://git.openjdk.org/jdk/pull/22085
More information about the hotspot-runtime-dev
mailing list