commit | 6da743bfe7c60ad873df72a3b6412137c4ac71dc | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Wed Jul 15 16:56:00 2009 -0700 |
committer | Andy McFadden <fadden@android.com> | Wed Jul 15 17:04:16 2009 -0700 |
tree | f0a687d13004d18702e78dcba0855fe30aa8d9c5 | |
parent | f28359b2585f7f79958c16e3c146bdc3892cd9f9 [diff] |
Throw OutOfMemoryError on oversize array allocs. We've been throwing InternalError because of a particular statement in the JPL that suggests we should be clearing out SoftReferences before throwing OOM. That seems unnecessary for an array allocation that we're rejecting because the total size doesn't fit in a 32-bit integer. Now we just throw OOM.