On Wed, 23 Aug 2023 03:05:23 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
> SA only looks at _initialized, but I suppose you could argue that it also > should be checking _destroyed before accessing PerfMemory. In JDK-8151815, we do not clear fields in `PerfMemory` because they are used in SA even if they are freed, so we can ignore `_destroyed` in SA. We've discussed about this in [review thread of JDK-8151815](https://mail.openjdk.org/pipermail/serviceability-dev/2017-October/022050.html). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15373#discussion_r1302485316