Integrated: 8312150: Remove -Xnoagent option

Jaikiran Pai jpai at openjdk.org
Thu Dec 14 10:39:48 UTC 2023


On Fri, 8 Dec 2023 08:31:55 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Can I please get a review of this change which proposes to remove the `-Xnoagent` option of the `java` command? This addresses https://bugs.openjdk.org/browse/JDK-8312150.
> 
> In Java 22, we already deprecated this option for removal through https://bugs.openjdk.org/browse/JDK-8312073. As noted in that CSR, this option has been a no-op for several releases now and has been ignored by the `java` command. The option isn't part of any documented options either. In Java 22, the usage of this option will print a warning.
> 
> In Java 23 and above, with the current proposed change in this PR, the usage of this option will no longer be supported and it will start throwing an error just like any other unsupported option:
> 
> 
> java -Xnoagent -version
> Unrecognized option: -Xnoagent
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> 
> Having looked at some available data at hand, there are projects/builds which have been using this option (mostly due to copy/paste) and they will be impacted by this. So it will be good to do this change early during the 23 release cycle to allow the impacted projects to notice this change and update their launch scripts accordingly.
> 
> tier1, tier2 and tier3 tests continue to pass with this change. I'll create a CSR shortly.

This pull request has now been integrated.

Changeset: d2ba3b1e
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d2ba3b1ef733cb8435188993791f2af7f1d4f0eb
Stats:     5 lines in 2 files changed: 0 ins; 4 del; 1 mod

8312150: Remove -Xnoagent option

Reviewed-by: dholmes, alanb

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

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


More information about the hotspot-runtime-dev mailing list