summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-09-11 13:46:25 -0700
committer Elliott Hughes <enh@google.com> 2011-09-11 14:01:57 -0700
commit8daa0929f08a3080ea64dbd4e997e72f411e6fc9 (patch)
treececee23131d5e0357c17c44bcccc7ddcfb31b925 /src/utils.cc
parent4b620ffb1b4d0c96a94bb3afe314f35d53990ec6 (diff)
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
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/utils.cc b/src/utils.cc
index fed8a5eea6..d146166e8e 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -252,15 +252,6 @@ void SetThreadName(const char *threadName) {
#endif
}
-pid_t GetOwner(pthread_mutex_t* mutex) {
-#ifdef __BIONIC__
- return static_cast<pid_t>(((mutex)->value >> 16) & 0xffff);
-#else
- UNIMPLEMENTED(FATAL);
- return 0;
-#endif
-}
-
} // namespace art
// Neither bionic nor glibc exposes gettid(2).