The fix improves Attch API protocol and implements updated protocol on windows; shared code is ready to implement updated protocol support on other platforms. More detailed explanations on the 1st comment.
Testing: tier1,tier2,tier3,tier4,hs-tier5-svc manually tested backward compatibility (old tools can attach to current VMs, current tools can attach to older VMs) on Windows with jdk21u and jdk8u. ------------- Commit messages: - Merge branch 'attach_v2' of github.com:alexmenkov/jdk into attach_v2 - attach api v2 - attach api v2 Changes: https://git.openjdk.org/jdk/pull/20782/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20782&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339289 Stats: 971 lines in 7 files changed: 759 ins; 139 del; 73 mod Patch: https://git.openjdk.org/jdk/pull/20782.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20782/head:pull/20782 PR: https://git.openjdk.org/jdk/pull/20782