RFR: 8263342: Add --connect option to jhsdb hsdb/clhsdb

Chris Plummer cjplummer at openjdk.java.net
Wed Mar 10 21:35:09 UTC 2021


On Wed, 10 Mar 2021 08:29:37 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> Most of subcommands in jhsdb supports to connect to debug server via `--connect` command line option, however `hsdb` and `clhsdb` do not accept it.
> 
> Both HSDB and CLHSDB support to connect to debug server, so they should have capability to do it via command line option.
> 
> I also filed [CSR for this issue](https://bugs.openjdk.java.net/browse/JDK-8263345). Please review it as well.

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/CLHSDB.java line 157:

> 155:             } catch (NumberFormatException e) {
> 156:                 // Attempt to connect to remote debug server
> 157:                 debugServerName = args[0];

I assume this change to no longer support just specifying an execPath is not exposed to the user, unless they are invoking the CLHSDB class directly from the command line.

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

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


More information about the serviceability-dev mailing list