aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.cpp
diff options
context:
space:
mode:
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>2011-02-03 15:12:46 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2012-06-05 10:55:49 +0200
commite0e29754397bc0447d77d8cc82009d83ffb01208 (patch)
treecb63ff88c02d55a67629c84429e09125f0fb79f5 /vm/compiler/codegen/arm/CodegenDriver.cpp
parent07901d5e8d0be0130d92b626f0b92d177ba8f460 (diff)
Add test cases for concurrent gc and System.arraycopy
When System.arraycopy runs at the same time as a concurrent gc the phone will sometimes crash since System.arraycopy was implemented using memmove and memcpy. In current implementation of mememove bytes are copied one at a time. If for instance only 3 out of 4 bytes to an object reference were copied when the thread switch to the gc thread occurred and the gc was scanning the marked objects the gc read an invalid address. The parameters to dvmWriteBarrierArray in one case was also corrected (they are currently not used). The fix itself for this crash is made elsewhere, this commit just adds test cases to verify that this works. Change-Id: I0a8cfd43561b3d5de4bba818993bcf8b40413045
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.cpp')
0 files changed, 0 insertions, 0 deletions