[jdk21u-dev] RFR: 8370214: [21u] Remove -Xdebug and -Xnoagent from tests: backport parts of 8227229 and 8312072
Goetz Lindenmaier
goetz at openjdk.org
Mon Oct 20 11:27:24 UTC 2025
On Mon, 20 Oct 2025 09:11:22 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
>> This is a backport of the test parts of
>>
>> [8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6](https://bugs.openjdk.org/browse/JDK-8227229)
>> and
>> [8312072: Deprecate for removal the -Xnoagent option](https://bugs.openjdk.org/browse/JDK-8312072)
>>
>> I prepared two commits to separate the edits of each of these.
>>
>> Backporting these changes makes
>> [8327704: Update nsk/jdi tests to use driver instead of othervm](https://bugs.openjdk.org/browse/JDK-8327704)
>> a clean backport. As 8327704 is huge, it would be quite unpleasant to review. See https://github.com/openjdk/jdk21u-dev/pull/2359
>>
>> Removing the usage of the options in 21 is fine as the effect of these options has been removed before 21.
>> I do not and can not backport the deprecation part of the change.
>
> Even in jdk (jdk26) we still mentioned '-Xdebug' in src/hotspot/share/prims/jvmti.xml ; should we better kick it out there (separate JBS issue) ?
Hi @MBaesken
well, the mentioning of the flag in the man pages should not be removed, as the situation is unchanged. I do not backport the removal of the flag. Fixing of at least a row of the places your query shows was in the original change.
In head though, I think any remains should be removed if possible.
Thanks for the review!
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2353#issuecomment-3421670501
More information about the jdk-updates-dev
mailing list