[15] RFR(XS): 8237945: CTW: C2 compilation fails with assert(just_allocated_object(alloc_ctl) == ptr) failed: most recent allo

Christian Hagedorn christian.hagedorn at oracle.com
Mon Feb 10 13:36:14 UTC 2020


Hi

Please review the following patch:
https://bugs.openjdk.java.net/browse/JDK-8237945
http://cr.openjdk.java.net/~chagedorn/8237945/webrev.00/

The assert is too strong as seen in the test case. The most recent 
allocation is the one from the if-branch whose memory state is not 
merged back for the array copy due to the return. Therefore, the bailout 
checks in LibraryCallKit::tightly_coupled_allocation() about the memory 
pass and the assertion fails afterwards.

Thank you!

Best regards,
Christian


More information about the hotspot-compiler-dev mailing list