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/class_linker.h b/src/class_linker.h
index e9606a7..fa0c789 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -10,8 +10,8 @@
#include "dex_file.h"
#include "heap.h"
#include "macros.h"
+#include "mutex.h"
#include "object.h"
-#include "thread.h"
#include "unordered_map.h"
#include "unordered_set.h"
@@ -264,9 +264,9 @@
// multimap from a StringPiece hash code of a class descriptor to
// Class* instances. Results should be compared for a matching
// Class::descriptor_ and Class::class_loader_.
+ mutable Mutex classes_lock_;
typedef std::tr1::unordered_multimap<size_t, Class*> Table;
Table classes_;
- Mutex* classes_lock_;
// indexes into class_roots_.
// needs to be kept in sync with class_roots_descriptors_.