On Fri, 8 May 2026 11:25:16 GMT, Kevin Walls <[email protected]> wrote:

>> This implements "jcmd on core files" for Linux, and for MiniDumps on Windows 
>> (MacOS is "future work").
>> jcmd "revives" the VM memory and .so/.dll from the core/minidump, and runs 
>> the existing native diagnostic command parser and command implementations.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Kevin Walls has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   only use _s_vm_release_global, no need to use mangled version on Linux

src/jdk.attach/share/classes/com/sun/tools/attach/spi/AttachProvider.java line 
175:

> 173:      * @since 27
> 174:      */
> 175:     public VirtualMachine attachVirtualMachine(String id, Map<String, ?> 
> env)

This will meed an `@implSpec` to say that the default implementation throws UOE.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31011#discussion_r3208919540

Reply via email to