The following assertion is observed at least on linux-i586/amd64 with both JDK 6u10 (1.6.0_10-ea-b10) and JDK 7 (1.7.0-ea-b24):
# assert(i < Max(),"oob")
It occurs only in -Xcomp mode. Only C2 is affected.
Product build crashes during execution.
Testcase and hs_err file are attached.
NeverBranchNodes should have ideal methods which allow them to fold up and they should also participate in the malformed control flow bailout checks.