diff options
| author | Carl Shapiro <cshapiro@google.com> | 2011-04-18 15:08:21 -0700 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2011-04-18 17:04:14 -0700 |
| commit | bdd06aadab6214d2378b7d5078f92bfb14e7e3dc (patch) | |
| tree | 39951ae71851babcbd086b99f385b182c1f84d89 /vm/compiler/codegen/arm/CodegenDriver.cpp | |
| parent | 486ac3c0a90b05be5af4b82801ef325e83241057 (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
Change-Id: I9cfe1b62ea61f03e46f44ad2be0d1cce1bef7cdd
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.cpp')
0 files changed, 0 insertions, 0 deletions
