RFR: 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6 [v5]

Alan Bateman alanb at openjdk.org
Wed Jul 19 08:00:43 UTC 2023


On Wed, 19 Jul 2023 07:07:40 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> I would like inputs on the test/hotspot/jtreg/runtime/6294277/SourceDebugExtension.java test. That test launches java passing it the -Xdebug option and was introduced as part of https://bugs.openjdk.org/browse/JDK-6294277. -Xdebug has been a no-op for many releases now. Is this test still relevant and if not, should I go ahead and remove it as part of this change?

The SDE class file attribute supports debugging of other languages (see JSR-45). The VM usually skips it but it has to save the bytes when a JVMTI agent has the can_get_source_debug_extension capability enabled. The debugger agent enables this capability so running with -agentlib:jdwp is enough to ensure that it is read. The -Xdebug option can be dropped from the test but otherwise I think leave it in place as it exercises a SDE that is >64k.

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

PR Comment: https://git.openjdk.org/jdk/pull/14918#issuecomment-1641606804



More information about the build-dev mailing list