Integrated: 8362561: Remove diagnostic option AllowArchivingWithJavaAgent

Ioi Lam iklam at openjdk.org
Thu Sep 18 16:12:21 UTC 2025


On Tue, 16 Sep 2025 03:52:16 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 000569da
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/000569da601afde85f83c361c9f1a7ba3814bff4
Stats:     1197 lines in 25 files changed: 41 ins; 1146 del; 10 mod

8362561: Remove diagnostic option AllowArchivingWithJavaAgent

Reviewed-by: sspitsyn, shade, dholmes, ayang

-------------

PR: https://git.openjdk.org/jdk/pull/27304


More information about the serviceability-dev mailing list