commit | e4195e1c91f4ea3c6192070fd3c9b9e4e6d429ae | [log] [tgz] |
---|---|---|
author | Carl Shapiro <cshapiro@google.com> | Mon Apr 18 15:08:21 2011 -0700 |
committer | Carl Shapiro <cshapiro@google.com> | Tue Apr 19 18:30:09 2011 -0700 |
tree | f3a9bf34968d89819bfb2e99edf3067c3f342c38 | |
parent | a0739ea3040b578a53de817688ab5e9f17c0ce72 [diff] |
Fix a type error in the allocation of non-moving arrays. Originally, non-moving arrays were allocated with dvmAllocObjectArray. However, dvmAllocObjectArray does not respect the width of the user supplied element class and substitutes a hard coded value of 4 bytes. This change replaces dvmAllocObjectArray with dvmAllocArrayByClass. dvmAllocArrayByClass consults the element class for its width when computing the storage size for the array being allocated. Bug: 4309030