RFR: 8324236: compiler/ciReplay/TestInliningProtectionDomain.java failed with RuntimeException: should only dump inline information for ... expected true, was false

Christian Hagedorn chagedorn at openjdk.org
Mon Jan 29 09:23:35 UTC 2024


On Fri, 26 Jan 2024 21:42:27 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> The test failed when trying to match the compile id of the interesting method by looking for "`<nmethod compile_id='2`" in this line:
> 
> <nmethod compile_id='2' compiler='c2' entry='0x000000010e293f40' size='680' address='0x000000010e293d90' relocation_offset='360' insts_offset='432' stub_offset='568' scopes_data_offset='616' scopes_pcs_offset='624' dependencies_offset='672' oops_offset='600' metadata_offset='608' method='compiler.ciReplay.ProtectionDomainTestNoOtherCompilationPrivateString test ()V' bytes='5' count='6784' iicount='6784' stamp='0.307'/>
> 
> But it first found the earlier line:
> 
> <nmethod compile_id='20' compile_kind='c2n' compiler='' entry='0x000000010e28b6c0' size='544' address='0x000000010e28b510' relocation_offset='360' insts_offset='432' method='java.lang.invoke.MethodHandle linkToStatic (ILjava/lang/invoke/MemberName;)Ljava/lang/Object;' bytes='0' count='0' iicount='0' stamp='0.213'/>
> 
>  which unfortunately also matched "`<nmethod compile_id='2`". I suggest to make the check stronger by adding a closing `'` which should then only match "`<nmethod compile_id='2'`"
> 
> Thanks,
> Christian

Thanks Vladimir for your review!

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

PR Comment: https://git.openjdk.org/jdk/pull/17598#issuecomment-1914278059


More information about the hotspot-compiler-dev mailing list