Merge change 7474

* changes:
  Throw OutOfMemoryError on oversize array allocs.