aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-11-30 11:29:51 -0800
committerAndy McFadden <fadden@android.com>2010-11-30 12:11:18 -0800
commit9d674e9a03ffa05bec6d83c260d349e18bf7c21f (patch)
treed3d0573c16fdd4c0836bce2479b7ebf564d7433f /vm/compiler/codegen/arm/CodegenDriver.c
parent003a38e99c980788535be7e94736ecee6617488d (diff)
Fix DexFile cookie check.
We use a "cookie" rather than just accepting a raw pointer so that the VM doesn't crash if something weird gets passed in. Unfortunately the cookie verify function was dereferencing the cookie to compute a value for the hash table lookup, defeating the purpose. Since we don't deal with opening the same DEX file in a constructive way, we can just take the low part of the pointer itself and use that as the hash. (Hashing isn't really necessary given the number of DEX files we expect to have open; mostly it's just a convenient synchronized data structure.) Bug 3238298 Change-Id: I1a545d4154b58159acdc21809b55b098c1419644
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions