OSDN Git Service

VisitClassesWithoutClassesLock isn't safe if classes move.
authorIan Rogers <irogers@google.com>
Fri, 29 Aug 2014 22:40:08 +0000 (15:40 -0700)
committerIan Rogers <irogers@google.com>
Mon, 8 Sep 2014 14:35:39 +0000 (07:35 -0700)
commitca0c8d3f81cdee58bd9a70c0fd26f79917dff3b5
tree7894a0d3f5ca6f7d10c26efcdee2e513b4dda2e2
parent2c63eee334bca18536060eea2e4a2f7883ef8eb9
VisitClassesWithoutClassesLock isn't safe if classes move.

Which they do, so avoid by doing an array allocation.
Also, tidy member variables to the end of ClassLinker.
Remove unnecessary mutable. Tidy and fix a locks required/excluded.

Change-Id: I2404a9e7a1ea997d68ab1206f97d2a20dffbda06
(cherry picked from commit dbf3be0f133c0bdf454f637fee2452dbb5f7c027)
runtime/class_linker.cc
runtime/class_linker.h