OSDN Git Service

Fix an array out-of-bound read in the JIT compiler.
authorBen Cheng <bccheng@google.com>
Fri, 13 Apr 2012 23:35:41 +0000 (16:35 -0700)
committerBen Cheng <bccheng@google.com>
Fri, 13 Apr 2012 23:35:41 +0000 (16:35 -0700)
commit513691130f0c1ab94f52127c40d0018bb7dfc529
treee14a62e1c68be52dfda9fb0a734602870daec6e8
parentce6603b52e6b2ef947cb308b1d7157e357bcba02
Fix an array out-of-bound read in the JIT compiler.

Without the fix the compiler is still safe since the offending memory access
is a read, though the hoisted distance is non-deterministic. The easiest and
safest fix is to unconditionally hoist a load when it can reach the
scheduling barrier.

BUG: 6300640
Change-Id: Ic83de6dd1e3f602bda6809bfe840db3a097a5176
vm/compiler/codegen/arm/LocalOptimizations.cpp