RFR: 8314679: SA fails to properly attach to JVM after having just detached from a different JVM
Chris Plummer
cjplummer at openjdk.org
Wed Aug 23 20:13:31 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.
Thanks for the reviews Kevin and David!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15395#issuecomment-1690570422
More information about the serviceability-dev
mailing list