review(S): 7058510: multinewarray with 6 dimensions uncommon traps in server compiler

Igor Veresov igor.veresov at oracle.com
Mon Jun 27 12:07:38 PDT 2011


Problem: multinewarray with >= 6 dimensions is not supported by c2 and 
is plugged with uncommon trap. When executed in the main code path this 
yields performance far worse than even interpreter.

Solution: Count these traps per bci and when the number exceeds 
PerBytecodeTrapLimit make it not compilable. With tiered it would result 
in recompilation at level 1 (pure C1), with regular scheme the method 
will continue in the interpreter.


Webrev: http://cr.openjdk.java.net/~iveresov/7058510/webrev.00/


Thanks,
igor


More information about the hotspot-compiler-dev mailing list