OSDN Git Service

Change MemMap::maps_ to not be global variable
authorMathieu Chartier <mathieuc@google.com>
Tue, 14 Oct 2014 23:22:41 +0000 (16:22 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 14 Oct 2014 23:22:41 +0000 (16:22 -0700)
commitc54e12a413e16f90526318f1f466a900a717fbb0
tree94f28bb25f7fee058cb23fdb3090a5da6d14b285
parent5d1c1bbd4c8a1727027d0ae69277af6f6f6badf3
Change MemMap::maps_ to not be global variable

Runtime.exit() was causing globals to get destructed at the same time
that another thread was using it for allocating a new mem map.

(cherry picked from commit 6e88ef6b604a7a945a466784580c42e6554c1289)

Bug: 17962201
Change-Id: I400cb7b8141d858f3c08a6fe59a02838c04c6962
compiler/common_compiler_test.cc
compiler/image_test.cc
dex2oat/dex2oat.cc
patchoat/patchoat.cc
runtime/common_runtime_test.cc
runtime/mem_map.cc
runtime/mem_map.h
runtime/mem_map_test.cc
runtime/runtime.cc