RFR: 8314679: SA fails to properly attach to JVM after having just detached from a different JVM
David Holmes
dholmes at openjdk.org
Wed Aug 23 02:43:17 UTC 2023
On Tue, 22 Aug 2023 23:22:37 GMT, Chris Plummer <cjplummer at 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.
Seems reasonable.
Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15395#pullrequestreview-1590600432
More information about the serviceability-dev
mailing list