summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2016-07-18 18:34:02 +0100
committerTorne (Richard Coles) <torne@google.com>2016-07-18 18:45:24 +0100
commit59375a015a8a0cfdb5a330242241ab3c8df3774a (patch)
tree1c9a5414117874d531914101e249e021ab2eff95 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent84011de7061cf2e526366aee0e702ccba3069de5 (diff)
Remove synchronized from static methods in WebView.
ART uses the class object's embedded monitor to protect class initialization - the same monitor used by "synchronized" applied to static methods. This can cause deadlock in extremely rare cases of preemption during WebView code loading. Remove synchronized from all static methods in WebView, to avoid this deadlock. In most cases the synchronized is simply unnecessary in the Chromium-based WebView implementation; in CookieSyncManager we instead use a separately allocated Lock object to preserve thread safety. Bug: 27417671 Change-Id: I13049f23fc984b77a3f4c203a5c698858c64abfe
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions