On Tue, 22 Aug 2023 23:22:37 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
> The CDS archive can change memory locations on different runs of the same JVM > binary. This exposed a long standing bug in FileMapInfo.java. It was caching > addresses that could be different for different JVM processes. As a result, > doing an attach, detach, and then another attach to a different JVM process > was resulting in various exceptions because the contents of CDS memory was > not as expected. > > Tested by running all serviceability/sa tests. Also tested with ZGC and > generational ZGC. This pull request has now been integrated. Changeset: 38a9edfb Author: Chris Plummer <cjplum...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/38a9edfb7ee2d91ff52074137c5b69e27bcdbdc3 Stats: 95 lines in 3 files changed: 94 ins; 0 del; 1 mod 8314679: SA fails to properly attach to JVM after having just detached from a different JVM Reviewed-by: dholmes, kevinw ------------- PR: https://git.openjdk.org/jdk/pull/15395