summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2015-02-06 10:03:08 +0000
committerNeil Fuller <nfuller@google.com>2015-02-06 10:29:54 +0000
commitd29bdb266d54b4551f42776bb790e80147a279d0 (patch)
tree63f0a7f0b1d04f47a6d650e955a9f2b94a3006b3 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdcce25a9a7fb3458f2fb65b23912b5f7eb42c596 (diff)
Avoid static initialization of Layout from TextUtils
This works around a bug in standalone (e.g. non-Zygote) runtimes when a device is attached to a host that is running DDM. There is a race condition: When the runtime receives a HELLO from DDM it calls TextUtils.isEmpty(). Calling any TextUtils methods statically initializes Layout. Layout has dependencies on other classes, which in turn have dependencies on native methods that are not always registered when the call takes place. Registration and DDM handling are done in separate threads. This is not a fix, merely a workaround until the race can be resolved. Bug: 18081539 Change-Id: If1bd3de6597bc93da381c8f86dacf40156449561
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions