OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
35ff69b
)
Merge "Allow the VM to suspend while the heap worker initializes."
author
Brian Carlstrom
<bdc@google.com>
Thu, 29 Jul 2010 21:48:35 +0000
(14:48 -0700)
committer
Android (Google) Code Review
<android-gerrit@google.com>
Thu, 29 Jul 2010 21:48:35 +0000
(14:48 -0700)
vm/alloc/HeapWorker.c
patch
|
blob
|
history
diff --git
a/vm/alloc/HeapWorker.c
b/vm/alloc/HeapWorker.c
index
4521e34
..
f1d4169
100644
(file)
--- a/
vm/alloc/HeapWorker.c
+++ b/
vm/alloc/HeapWorker.c
@@
-329,12
+329,12
@@
static void* heapWorkerThreadStart(void* arg)
LOGV("HeapWorker thread started (threadid=%d)\n", self->threadId);
/* tell the main thread that we're ready */
-
dvmL
ockMutex(&gDvm.heapWorkerLock);
+
l
ockMutex(&gDvm.heapWorkerLock);
gDvm.heapWorkerReady = true;
dvmSignalCond(&gDvm.heapWorkerCond);
dvmUnlockMutex(&gDvm.heapWorkerLock);
-
dvmL
ockMutex(&gDvm.heapWorkerLock);
+
l
ockMutex(&gDvm.heapWorkerLock);
while (!gDvm.haltHeapWorker) {
struct timespec trimtime;
bool timedwait = false;