summaryrefslogtreecommitdiffstats
path: root/vm/Sync.h
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-01-29 13:44:19 -0800
committerBill Buzbee <buzbee@google.com>2010-01-29 13:49:17 -0800
commit94d89f8016b6c305ab0df491874dcedb252ecfcc (patch)
tree588eca713af24609ab7e160ebef68ea14eb8be4d /vm/Sync.h
parent97d22dfc9a63d99dbad44a00622a9979b250b9d9 (diff)
downloadandroid_dalvik-94d89f8016b6c305ab0df491874dcedb252ecfcc.tar.gz
android_dalvik-94d89f8016b6c305ab0df491874dcedb252ecfcc.tar.bz2
android_dalvik-94d89f8016b6c305ab0df491874dcedb252ecfcc.zip
Jit: Fix for [Issue 2406862] Compiler thread preventing VM from shutting down
Replace placeholder sleep with timed condition wait that will start the jit either when the framework signals that the first screen has been drawn or a fixed time has elapsed.
Diffstat (limited to 'vm/Sync.h')
-rw-r--r--vm/Sync.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/Sync.h b/vm/Sync.h
index 0ce3ebc6b..083260874 100644
--- a/vm/Sync.h
+++ b/vm/Sync.h
@@ -146,6 +146,11 @@ struct Object* dvmGetMonitorObject(Monitor* mon);
bool dvmHoldsLock(struct Thread* thread, struct Object* obj);
/*
+ * Converts the given relative time into an absolute time
+ */
+void dvmAbsoluteTime(s8 msec, s4 nsec, struct timespec *ts);
+
+/*
* Debug.
*/
void dvmDumpMonitorInfo(const char* msg);