Protect the construction of the verification thread pool.
Multiple threads may try to allocate it.
Also make the ThreadPool lock a bottom lock.
Test: m
Bug: 172811380
Change-Id: I061e20666cb784feb31be94785f2949451db9de9
diff --git a/runtime/thread_pool.cc b/runtime/thread_pool.cc
index f991c05..57d7f61 100644
--- a/runtime/thread_pool.cc
+++ b/runtime/thread_pool.cc
@@ -164,7 +164,7 @@
bool create_peers,
size_t worker_stack_size)
: name_(name),
- task_queue_lock_("task queue lock"),
+ task_queue_lock_("task queue lock", kGenericBottomLock),
task_queue_condition_("task queue condition", task_queue_lock_),
completion_condition_("task completion condition", task_queue_lock_),
started_(false),