aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/LocalOptimizations.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2009-11-13 17:07:00 -0800
committerElliott Hughes <enh@google.com>2009-11-13 17:12:48 -0800
commitf8e2929ab07550a5495973a4f50eb3ecb16ef3bd (patch)
treea87d9da4a2e580dfc9155099ca5f242e31ffce95 /vm/compiler/codegen/arm/LocalOptimizations.c
parent1408f0386ef03cdc7f207fdf467728b2c9e5ff4d (diff)
Don't allocate arbitrary-length buffers on the stack.
A new LocalArray C++ class lets us specify a "reasonable" amount of stack to use, but transparently fall back to using the heap if we need more space. The three places I've chosen to use LocalArray in this patch are fairly random; all they have in common is that they're the places where we call GetStringUTFRegion. There are more places LocalArray will be useful: the java.io.File JNI in particular. Bug: 2257819
Diffstat (limited to 'vm/compiler/codegen/arm/LocalOptimizations.c')
0 files changed, 0 insertions, 0 deletions