[jdk11u-dev] RFR: 8357105: C2: compilation fails with "assert(false) failed: empty program detected during loop optimization"
Antonio Vieiro
avieiro at openjdk.org
Thu Aug 21 13:20:08 UTC 2025
On Mon, 18 Aug 2025 14:54:23 GMT, Antonio Vieiro <avieiro at openjdk.org> wrote:
> Mostly clean backport of [JDK-8357105](https://bugs.openjdk.org/browse/JDK-8357105). Backport is not clean because JDK11 C++ uses `NULL` instead of `nulllptr`.
>
> Tested on Linux with:
>
> tier1 tests:
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/hotspot/jtreg:tier1 1497 1497 0 0
> jtreg:test/jdk:tier1 1899 1899 0 0
> jtreg:test/langtools:tier1 3941 3941 0 0
> jtreg:test/nashorn:tier1 0 0 0 0
> jtreg:test/jaxp:tier1 0 0 0 0
> ==============================
> TEST SUCCESS
>
>
> The test itself
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/hotspot/jtreg/compiler/stringopts/TestStackedConcatsAppendUncommonTrap.java
> 1 1 0 0
> ==============================
> TEST SUCCESS
>
>
> and gtests
>
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> gtest:all/server 504 504 0 0
> ==============================
> TEST SUCCESS
>
>
> Reproducing this on 11 requires the additional flags `-XX:+UnlockDiagnosticVMOptions -XX:+AbortVMOnCompilationFailure `. I'm wondering if we want to add these additional flags to the new test too for 11...
Also ran `tier2` tests (rhel8/x86_64), that return the same results than when ran in `master`.
==============================
Test summary
==============================
TEST TOTAL PASS FAIL ERROR
jtreg:test/hotspot/jtreg:tier2 329 329 0 0
>> jtreg:test/jdk:tier2 3514 3510 4 0 <<
jtreg:test/langtools:tier2 11 11 0 0
jtreg:test/nashorn:tier2 36 36 0 0
jtreg:test/jaxp:tier2 445 445 0 0
==============================
TEST FAILURE
Failures are unrelated, one of them requires approval of the [JDK-8365811](https://bugs.openjdk.org/browse/JDK-8365811) backport.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/3071#issuecomment-3210570482
More information about the jdk-updates-dev
mailing list