RFR: 8299155: C2: SubTypeCheckNode::verify() should not produce dependencies / oop pool entries

Richard Reingruber rrich at openjdk.org
Thu Feb 2 14:03:23 UTC 2023


On Thu, 2 Feb 2023 09:07:39 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> This patch simply guarantees a new LoadKlassNode is not created (and
> processed by igvn) unless it's really needed.

Hi @rwestrel ,
I've tested the reproducer from the JBS item on a fastdebug build.
I can confirm *without* your fix the classloader of the final target method *is* added to the oop pool of the caller nmethod. Whereas *with* your fix it *is not* added. So with your fix there is no difference between debug and product builds.
I'll put the fix through our CI testing.
Thanks, Richard.

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

PR: https://git.openjdk.org/jdk/pull/12383


More information about the hotspot-compiler-dev mailing list