RFR: 8279662: serviceability/sa/ClhsdbScanOops.java can fail do to unexpected GC

Chris Plummer cjplummer at openjdk.java.net
Wed Feb 2 16:24:11 UTC 2022


On Wed, 2 Feb 2022 09:49:26 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

> For the scanoops for a type, it seems like a reasonable assumption that there will be a String in the old gen!

Actually it's not, and that's why I check the Eden gen. If a GC is not triggered, the old gen will be empty. It not actually guaranteed that a String will be in the Eden gen either, but at least at the moment that appears to be the case whether or not a GC is triggered.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7295


More information about the serviceability-dev mailing list