On Wed, 2 Feb 2022 09:49:26 GMT, Kevin Walls <kev...@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