OSDN Git Service

Merge "Allow the VM to suspend while the heap worker initializes."
authorBrian Carlstrom <bdc@google.com>
Thu, 29 Jul 2010 21:48:35 +0000 (14:48 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 29 Jul 2010 21:48:35 +0000 (14:48 -0700)
vm/alloc/HeapWorker.c

index 4521e34..f1d4169 100644 (file)
@@ -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 */
-    dvmLockMutex(&gDvm.heapWorkerLock);
+    lockMutex(&gDvm.heapWorkerLock);
     gDvm.heapWorkerReady = true;
     dvmSignalCond(&gDvm.heapWorkerCond);
     dvmUnlockMutex(&gDvm.heapWorkerLock);
 
-    dvmLockMutex(&gDvm.heapWorkerLock);
+    lockMutex(&gDvm.heapWorkerLock);
     while (!gDvm.haltHeapWorker) {
         struct timespec trimtime;
         bool timedwait = false;