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

Igor Veresov igor.veresov at
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.



More information about the hotspot-compiler-dev mailing list