On 2/5/24 1:56 AM, Kevin Walls wrote:
On Mon, 5 Feb 2024 09:25:24 GMT, Yi Yang <yy...@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