RFR: 8319055: JCMD should not buffer the whole output of commands
Alex Menkov
amenkov at openjdk.org
Mon Feb 3 20:12:15 UTC 2025
On Sat, 1 Feb 2025 08:14:15 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Do you expect there will be follow up work at some point for the commands that upcall to Java and produce a byte[] to return to the tool?
I don't see much need in the functionality now (streaming output is useful for commands which produce lengthy output or take long time to execute), but we can add it if desired - need to wrap native writer to OutputStream and use the stream by java handlers (instead of byte buffer) to write command output.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23405#issuecomment-2631965659
More information about the hotspot-runtime-dev
mailing list