RFR: 8290246: test fails "assert(init != __null) failed: initialization not found" [v2]
Vladimir Kozlov
kvn at openjdk.org
Fri Jul 15 05:10:50 UTC 2022
On Thu, 14 Jul 2022 20:46:04 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> CTW test (which compiles methods without running them - no profiling) failed when run with stress flag and particular RNG seed `-XX:+StressIGVN -XX:StressSeed=1743550013`. The failure is intermittent because of RNG.
>>
>> The compiled method [BasicPopupMenuUI$BasicMenuKeyListener::menuKeyPressed()](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java#L331) has allocation in loop at line [L360](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java#L360) which is followed by call `item.isArmed()` at line L366. This call is not "linked" and uncommon trap is generated for it. As result the allocation result become un-used.
>> Due to shuffling done with `StressIGVN` flag LoadRangeNode is processed after InitializeNode is removed from graph but AllocateArrayNode is not. We hit assert because of that.
>>
>> The fix replaces the assert with check.
>>
>> Tested with replay file from bug report. I was not able to reproduce failure with standalone test because it is hard to force LoadRangeNode processing at right time. I attached to bug report a test which work on.
>>
>> Testing tier1-3,xcomp
>
> Vladimir Kozlov has updated the pull request incrementally with one additional commit since the last revision:
>
> Return original length when InitializeNode is absent
Thank you, Igor.
-------------
PR: https://git.openjdk.org/jdk/pull/9497
More information about the hotspot-compiler-dev
mailing list