commit | a1a19d28d0e432c2d90e4fd73146891c57d01479 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Wed Dec 04 17:32:43 2013 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Dec 04 17:58:37 2013 -0800 |
tree | 04da997477d4e57e5ef610526fbbb6361f092efa | |
parent | 453a5233086b216f2a95d0879954a2af39279095 [diff] |
Use exceptionCheck after VMRuntime.newNonMovableArray/addressOf. Since VMRuntime.newNonMovableArray and VMRuntime.addressOf are java methods implemented in Native, they don't necessarily return NULL when an exception is thrown. Checking the exception instead of the return value fixes errors which may occur if the runtime returns garbage when an exception is pending. Bug: 11971220 Change-Id: I70478834c9f14cc5d9e666e1e174d3fd09269719