8312072: Deprecate for removal the -Xnoagent option

Reviewed-by: alanb, dholmes, cjplummer
This commit is contained in:
Jaikiran Pai 2023-07-18 05:41:37 +00:00
parent fbe51e388d
commit 8ec136e6f0
12 changed files with 23 additions and 23 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions modification, are permitted provided that the following conditions
@ -242,7 +242,7 @@
</nbjpdastart> </nbjpdastart>
<property <property
name="@{jpda.jvmargs.property}" name="@{jpda.jvmargs.property}"
value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=${jpda.address}"
/> />
</sequential> </sequential>
</macrodef> </macrodef>

View File

@ -2659,7 +2659,7 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
set_xdebug_mode(true); set_xdebug_mode(true);
// -Xnoagent // -Xnoagent
} else if (match_option(option, "-Xnoagent")) { } else if (match_option(option, "-Xnoagent")) {
// For compatibility with classic. HotSpot refuses to load the old style agent.dll. warning("Option -Xnoagent was deprecated in JDK 22 and will likely be removed in a future release.");
} else if (match_option(option, "-Xloggc:", &tail)) { } else if (match_option(option, "-Xloggc:", &tail)) {
// Deprecated flag to redirect GC output to a file. -Xloggc:<filename> // Deprecated flag to redirect GC output to a file. -Xloggc:<filename>
log_warning(gc)("-Xloggc is deprecated. Will use -Xlog:gc:%s instead.", tail); log_warning(gc)("-Xloggc is deprecated. Will use -Xlog:gc:%s instead.", tail);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -97,7 +97,7 @@ public class attach001 {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java String cmd = java
+ " -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=0" + " -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=0"
+ " " + DEBUGEE_CLASS; + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -102,7 +102,7 @@ public class attach002 extends Log {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=y,address=" + " -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,address=" +
name + " " + DEBUGEE_CLASS; name + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -97,7 +97,7 @@ public class attachnosuspend001 {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java String cmd = java
+ " -Xdebug -Xnoagent -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0" + " -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0"
+ " " + DEBUGEE_CLASS; + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -134,7 +134,7 @@ public class launch003 {
Connector.Argument a = (Connector.Argument) cava[i]; Connector.Argument a = (Connector.Argument) cava[i];
if (a.name().equals("command")) if (a.name().equals("command"))
a.setValue(java + a.setValue(java +
" -Xdebug -Xnoagent -Xrunjdwp:suspend=y,transport=" + " -Xdebug -Xrunjdwp:suspend=y,transport=" +
TRANSPORT_NAME + TRANSPORT_NAME +
",address=" + host + ":" + port + ",address=" + host + ":" + port +
" " + DEBUGEE_CLASS); " " + DEBUGEE_CLASS);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -133,7 +133,7 @@ public class launch004 {
Connector.Argument a = (Connector.Argument) cava[i]; Connector.Argument a = (Connector.Argument) cava[i];
if (a.name().equals("command")) if (a.name().equals("command"))
a.setValue(java + a.setValue(java +
" -Xdebug -Xnoagent -Xrunjdwp:suspend=y,transport=" + " -Xdebug -Xrunjdwp:suspend=y,transport=" +
TRANSPORT_NAME + TRANSPORT_NAME +
",address=" + name + ",address=" + name +
" " + DEBUGEE_CLASS); " " + DEBUGEE_CLASS);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -81,7 +81,7 @@ public class accept001 {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=" + " -Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=" +
connAddr + " " + DEBUGEE_CLASS; connAddr + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -82,7 +82,7 @@ public class accept002 {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=n,address=" + " -Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=" +
connAddr + " " + DEBUGEE_CLASS; connAddr + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -81,7 +81,7 @@ public class listennosuspend001 {
String java = argHandler.getLaunchExecPath() String java = argHandler.getLaunchExecPath()
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=" + " -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=" +
connAddr + " " + DEBUGEE_CLASS; connAddr + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -157,7 +157,7 @@ public class startlis001 {
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=" + " -Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=" +
addr + " " + DEBUGEE_CLASS; addr + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -132,7 +132,7 @@ public class startlis002 {
+ " " + argHandler.getLaunchOptions(); + " " + argHandler.getLaunchOptions();
String cmd = java + String cmd = java +
" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=n,address=" + " -Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=" +
addr + " " + DEBUGEE_CLASS; addr + " " + DEBUGEE_CLASS;
Binder binder = new Binder(argHandler, log); Binder binder = new Binder(argHandler, log);