Review request (XS): 6663908 NegativeArraySizeException is not thrown

Chuck Rasbold Chuck.Rasbold at Sun.COM
Mon Apr 7 14:41:34 PDT 2008


http://webrev.invokedynamic.info/rasbold/6663908/

Fixed 6663908: NegativeArraySizeException is not thrown

A compiled method misses throwing a NegativeArraySizeException when the
lowest dimension has negative size, all of the higher dimension sizes are
constants, and at least one of those higher dimension sizes is zero.

Don't optimize a multidimensional array allocation when a dimension size is
zero.

Reviewed by:
Fix verified (y/n): y



More information about the hotspot-compiler-dev mailing list