On 14/10/2021 4:32 pm, Denghui Dong wrote:
On Thu, 14 Oct 2021 06:17:13 GMT, David Holmes <dhol...@openjdk.org> wrote:

In the current implementation, I provided some simple APIs in the Java layer 
(under sun.management.cmd)

An API that is expected to be used by application code can't go in the 
unsupported/internal-use-only sun.management namespace. This would have to be a 
new external facing supported API.

Cheers, David

Thanks.
  I consider putting the API into `javax.management.dcmd`. What do you think?

There are very specific rules related to the use of the javax namespace.

I'm not sure exactly where this API would need to go. IIUC jcmd doesn't exist at the Java level it is just a tool, so introducing an API to interact with it seems problematic to me. Other folk in serviceability (both VM and JDK sides) will need to weigh in here.

David

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

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

Reply via email to