Lines Matching refs:gDvm
85 if (gDvm.heapGrowthLimit == 0) {
86 gDvm.heapGrowthLimit = gDvm.heapMaximumSize;
89 gcHeap = dvmHeapSourceStartup(gDvm.heapStartingSize,
90 gDvm.heapMaximumSize,
91 gDvm.heapGrowthLimit);
100 gDvm.gcHeap = gcHeap;
106 if (!dvmCardTableStartup(gDvm.heapMaximumSize, gDvm.heapGrowthLimit)) {
122 if (gDvm.gcHeap != NULL) {
126 * frees gDvm.gcHeap as a side-effect.
128 dvmHeapSourceShutdown(&gDvm.gcHeap);
146 if (dvmTryLockMutex(&gDvm.gcHeapLock) != 0) {
152 dvmLockMutex(&gDvm.gcHeapLock);
161 dvmUnlockMutex(&gDvm.gcHeapLock);
169 if (gDvm.allocProf.enabled) {
171 gDvm.allocProf.gcCount++;
207 if (gDvm.gcHeap->gcRunning) {
308 dvmSetException(self, gDvm.outOfMemoryObj);
351 if (gDvm.allocProf.enabled) {
353 gDvm.allocProf.allocCount++;
354 gDvm.allocProf.allocSize += size;
364 if (gDvm.allocProf.enabled) {
366 gDvm.allocProf.failedAllocCount++;
367 gDvm.allocProf.failedAllocSize += size;
436 * - If we don't hold gDvm.threadListLock, it's possible for a thread to
448 GcHeap *gcHeap = gDvm.gcHeap;
491 if (gDvm.preVerify) {
558 if (gDvm.verifyCardTable) {
601 if (gDvm.postVerify) {
645 dvmBroadcastCond(&gDvm.gcHeapCond);
664 dvmEnqueueClearedReferences(&gDvm.gcHeap->clearedReferences);
731 bool waited = gDvm.gcHeap->gcRunning;
735 while (gDvm.gcHeap->gcRunning) {
737 dvmWaitCond(&gDvm.gcHeapCond, &gDvm.gcHeapLock);