On Tue, 22 Jun 2021 21:01:46 GMT, Alex Menkov <amen...@openjdk.org> wrote:

> Updated AllModulesCommandTest to use dynamic port launching debuggee.
> Parsing debuggee listening address functionality is required in several tests 
> (and we have other tests which need to be fixed the same way), so moved the 
> code to new class in jdk.test.lib

Marked as reviewed by kevinw (Committer).

OK, so we let the debugee JVM find its own port, and start using it, then 
JDWP.parseListenAddress() decodes the debugee output to find the port in use.  
findFreePort used previously was not working well, or was racing with other 
tests and clashing.  Sounds good.

I'm not sure in Debugee.java why we use an array for: JDWP.ListenAddress[] 
listenAddress

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

PR: https://git.openjdk.java.net/jdk/pull/4560

Reply via email to