More threads work.
Adds stubs (and sometimes implementations) for dalvik.system.VMStack and
java.lang.Thread native methods. There was a bug in the dalvik
thread priority setting code, where the current thread and the passed-in
thread were confused.
I've also pulled Mutex and ThreadList out into their own files, and
moved some functionality around (with the aim of having more stuff
private, especially locks).
Change-Id: Ieb0f22669cac3df44ca34f7868f8e7d4dfa09ab6
diff --git a/src/logging.cc b/src/logging.cc
index 03788c3..5e9ae3a 100644
--- a/src/logging.cc
+++ b/src/logging.cc
@@ -22,8 +22,8 @@
namespace {
-art::Mutex* GetLoggingLock() {
- static art::Mutex* lock = art::Mutex::Create("LogMessage lock");
+art::Mutex& GetLoggingLock() {
+ static art::Mutex lock("LogMessage lock");
return lock;
}