commit | f896f1254c761398ee7ded56e1e23327bccf0149 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Thu Jan 25 09:50:24 2018 -0800 |
committer | Makoto Onuki <omakoto@google.com> | Tue Mar 06 17:40:59 2018 -0800 |
tree | 86e90ff9ad7ed9710642d302837301432207fd03 | |
parent | 983c1e54e1ae651ffb4c0f1ce34a561624af6060 [diff] |
Avoid service wrapper initialization deadlock. - Don't initialize a service wrapper with the cache lock held. - Instead, use AtomicInteger to avoid instantiating the same service multiple times. Test: build, boot, presubmit Bug: 71882178 Change-Id: Iea4207b855043addac4d24381778babf8eedd84d