Goal: simplify AOT implementation and removed unnecessary tests: This PR removes old CDS tests that use java agents during CDS dump (to increase test coverage by triggering conditions, such as GCs, that were not happening during usual `java -Xshare:dump` operations).
Since AOT assembly is much more complex now, we have enough coverage. These old tests are no longer necessary. With these tests removed, we no longer need the `-XX:-AllowArchivingWithJavaAgent` diagnostic flag, which has been abused by users despite the warning that this flag should not be used in production. ------------- Commit messages: - Added test case for dynamic archive with -javaagent - 8362561: Remove diagnostic option AllowArchivingWithJavaAgent Changes: https://git.openjdk.org/jdk/pull/27304/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27304&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8362561 Stats: 1198 lines in 25 files changed: 41 ins; 1147 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/27304.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27304/head:pull/27304 PR: https://git.openjdk.org/jdk/pull/27304
