8303376: Better launching of JDI
Reviewed-by: mschoene, rhalade, vromero
This commit is contained in:
parent
925138a942
commit
cb5f1b72e1
@ -79,7 +79,8 @@ public class JdiInitiator {
|
||||
* @param timeout the start-up time-out in milliseconds. If zero or negative,
|
||||
* will not wait thus will timeout immediately if not already started.
|
||||
* @param customConnectorArgs custom arguments passed to the connector.
|
||||
* These are JDI com.sun.jdi.connect.Connector arguments.
|
||||
* These are JDI com.sun.jdi.connect.Connector arguments. The {@code vmexec}
|
||||
* argument is not supported.
|
||||
*/
|
||||
@SuppressWarnings("this-escape")
|
||||
public JdiInitiator(int port, List<String> remoteVMOptions, String remoteAgent,
|
||||
@ -105,7 +106,10 @@ public class JdiInitiator {
|
||||
argumentName2Value.put("localAddress", host);
|
||||
}
|
||||
}
|
||||
argumentName2Value.putAll(customConnectorArgs);
|
||||
customConnectorArgs.entrySet()
|
||||
.stream()
|
||||
.filter(e -> !"vmexec".equals(e.getKey()))
|
||||
.forEach(e -> argumentName2Value.put(e.getKey(), e.getValue()));
|
||||
this.connectorArgs = mergeConnectorArgs(connector, argumentName2Value);
|
||||
this.vm = isLaunch
|
||||
? launchTarget()
|
||||
|
Loading…
x
Reference in New Issue
Block a user