RFR: 8318026: jcmd should provide access to low-level JVM debug information

Laurence Cable larry.cable at oracle.com
Mon Feb 5 17:59:18 UTC 2024



On 2/5/24 1:56 AM, Kevin Walls wrote:
> On Mon, 5 Feb 2024 09:25:24 GMT, Yi Yang <yyang at openjdk.org> wrote:
>
>> jcmd VM.debug MyDebugCode.java
> Are you thinking to run some Java code in the target JVM?
>
> VM.debug as presented here is all about inspecting JVM state, mostly using existing mechanisms but which were not already exposed in jcmd.  I think this could be extended in future if needed.  But I think executing arbitrary Java code is quite different and raises more questions.

not too mention this is what is already supported with the attach API 
loadAgent facility, and is being disabled by default for security reasons.
>
> -------------
>
> PR Comment: https://git.openjdk.org/jdk/pull/17655#issuecomment-1926598031



More information about the serviceability-dev mailing list