OSDN Git Service

Initialize dex cache while holding dex_lock
authorMathieu Chartier <mathieuc@google.com>
Thu, 15 Sep 2016 17:24:43 +0000 (10:24 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 5 Oct 2016 16:39:07 +0000 (09:39 -0700)
commit6c60d8420e51fda65ad247ae04b5a823c88c26b6
tree8c4222eadad97235b5f6d860fb63ab8a749d111a
parentc13fbeb2201dc0bf783670d4548a49f03b1cb33e
Initialize dex cache while holding dex_lock

Fixes multiple threads calling RegisterDexFile occasionally getting
DCHECK failures due to the arrays not being null since the BSS ones
is per dex file.

Bug: 31369621

Test: test-art-host, no DCHECK failure during debug booting

Change-Id: I7b6e4cd03460dd1213eb4e044bdcf5f6103fd5f9
runtime/base/mutex.h
runtime/class_linker.cc
runtime/class_linker.h
runtime/mirror/dex_cache_test.cc