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>
Thu, 4 Sep 2014 00:39:44 +0000 (17:39 -0700)
commitdbf3be0f133c0bdf454f637fee2452dbb5f7c027
treecd57469dbefeb18ebbc0d8d2be3da236bb3218c5
parenta07557ccece64fa7084bb01b9d26957bd0977c10
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
runtime/class_linker.cc
runtime/class_linker.h