Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 21 of 21) sorted by relevance

/dalvik/vm/
DSync.cpp79 pthread_mutex_t lock; member
109 dvmInitMutex(&mon->lock); in dvmCreateMonitor()
153 u4 lock; in lockOwner() local
160 lock = obj->lock; in lockOwner()
161 if (LW_SHAPE(lock) == LW_SHAPE_THIN) { in lockOwner()
162 return LW_LOCK_OWNER(lock); in lockOwner()
164 owner = LW_MONITOR(lock)->owner; in lockOwner()
205 assert(LW_SHAPE(mon->obj->lock) == LW_SHAPE_FAT); in freeMonitor()
214 assert(pthread_mutex_trylock(&mon->lock) == 0); in freeMonitor()
215 assert(pthread_mutex_unlock(&mon->lock) == 0); in freeMonitor()
[all …]
DAtomic.cpp178 pthread_mutex_t* lock = SWAP_LOCK(addr); in dvmQuasiAtomicSwap64() local
180 pthread_mutex_lock(lock); in dvmQuasiAtomicSwap64()
185 pthread_mutex_unlock(lock); in dvmQuasiAtomicSwap64()
199 pthread_mutex_t* lock = SWAP_LOCK(addr); in dvmQuasiAtomicCas64() local
201 pthread_mutex_lock(lock); in dvmQuasiAtomicCas64()
209 pthread_mutex_unlock(lock); in dvmQuasiAtomicCas64()
216 pthread_mutex_t* lock = SWAP_LOCK(addr); in dvmQuasiAtomicRead64() local
218 pthread_mutex_lock(lock); in dvmQuasiAtomicRead64()
220 pthread_mutex_unlock(lock); in dvmQuasiAtomicRead64()
DHash.h79 pthread_mutex_t lock; member
115 dvmLockMutex(&pHashTable->lock); in dvmHashTableLock()
118 dvmUnlockMutex(&pHashTable->lock); in dvmHashTableUnlock()
DLinearAlloc.cpp212 dvmInitMutex(&pHdr->lock); in dvmLinearAllocCreate()
287 dvmLockMutex(&pHdr->lock); in dvmLinearAlloc()
388 dvmUnlockMutex(&pHdr->lock); in dvmLinearAlloc()
455 dvmLockMutex(&pHdr->lock); in updatePages()
526 dvmUnlockMutex(&pHdr->lock); in updatePages()
600 dvmLockMutex(&pHdr->lock); in dvmLinearAllocDump()
651 dvmUnlockMutex(&pHdr->lock); in dvmLinearAllocDump()
667 dvmLockMutex(&pHdr->lock); in checkAllFree()
685 dvmUnlockMutex(&pHdr->lock); in checkAllFree()
DSync.h73 #define IS_LOCK_FAT(lock) (LW_SHAPE(*(lock)) == LW_SHAPE_FAT) argument
DLinearAlloc.h35 pthread_mutex_t lock; /* controls updates to this struct */ member
DJni.cpp329 ScopedPthreadMutexLock lock(&gDvm.jniGlobalRefLock); in dvmDecodeIndirectRef() local
341 ScopedPthreadMutexLock lock(&gDvm.jniWeakGlobalRefLock); in dvmDecodeIndirectRef() local
473 ScopedPthreadMutexLock lock(&gDvm.jniGlobalRefLock); in addGlobalReference() local
525 ScopedPthreadMutexLock lock(&gDvm.jniWeakGlobalRefLock); in addWeakGlobalReference() local
541 ScopedPthreadMutexLock lock(&gDvm.jniWeakGlobalRefLock); in deleteWeakGlobalReference() local
560 ScopedPthreadMutexLock lock(&gDvm.jniGlobalRefLock); in deleteGlobalReference() local
588 ScopedPthreadMutexLock lock(&gDvm.jniPinRefLock); in pinPrimitiveArray() local
631 ScopedPthreadMutexLock lock(&gDvm.jniPinRefLock); in unpinPrimitiveArray() local
3302 ScopedPthreadMutexLock lock(&vm->envListLock); in dvmCreateJNIEnv() local
3333 ScopedPthreadMutexLock lock(&vm->envListLock); in dvmDestroyJNIEnv() local
DDebugger.h103 pthread_mutex_t lock; member
DHash.cpp54 dvmInitMutex(&pHashTable->lock); in dvmHashTableCreate()
DDebugger.cpp2688 dvmLockMutex(&targetThread->invokeReq.lock); in dvmDbgInvokeMethod()
2703 &targetThread->invokeReq.lock); in dvmDbgInvokeMethod()
2705 dvmUnlockMutex(&targetThread->invokeReq.lock); in dvmDbgInvokeMethod()
DThread.cpp920 dvmInitMutex(&thread->invokeReq.lock); in prepareThread()
/dalvik/dexgen/src/com/android/dexgen/util/
DIndentingWriter.java92 synchronized (lock) { in write()
140 synchronized (lock) { in write()
152 synchronized (lock) { in write()
/dalvik/dx/src/com/android/dx/util/
DIndentingWriter.java92 synchronized (lock) { in write()
140 synchronized (lock) { in write()
152 synchronized (lock) { in write()
/dalvik/tests/088-monitor-verification/
Dinfo.txt2 lock checks in the bytecode verifier.
/dalvik/vm/compiler/codegen/arm/Thumb2/
DGen.cpp252 offsetof(Object, lock) >> 2); // Get object->lock in genMonitorEnter()
259 newLIR4(cUnit, kThumb2Strex, r2, r3, r1, offsetof(Object, lock) >> 2); in genMonitorEnter()
305 loadWordDisp(cUnit, r1, offsetof(Object, lock), r2); // Get object->lock in genMonitorExit()
316 storeWordDisp(cUnit, r1, offsetof(Object, lock), r7); in genMonitorExit()
/dalvik/vm/native/
Ddalvik_system_VMRuntime.cpp69 ScopedPthreadMutexLock lock(&gDvmJit.compilerLock); in Dalvik_dalvik_system_VMRuntime_startJitCompilation() local
/dalvik/vm/interp/
DInterp.cpp94 pthread_mutex_t lock; member
109 dvmInitMutex(&pSet->lock); in dvmBreakpointSetAlloc()
137 if (dvmTryLockMutex(&pSet->lock) != 0) { in dvmBreakpointSetLock()
140 dvmLockMutex(&pSet->lock); in dvmBreakpointSetLock()
150 dvmUnlockMutex(&pSet->lock); in dvmBreakpointSetUnlock()
/dalvik/vm/alloc/
DCopying.cpp1290 if (LW_HASH_STATE(fromObj->lock) != LW_HASH_STATE_UNHASHED) { in transportObject()
1297 if (LW_HASH_STATE(fromObj->lock) == LW_HASH_STATE_HASHED_AND_MOVED) { in transportObject()
1310 if (LW_HASH_STATE(fromObj->lock) == LW_HASH_STATE_HASHED) { in transportObject()
1316 toObj->lock |= LW_HASH_STATE_HASHED_AND_MOVED << LW_HASH_STATE_SHIFT; in transportObject()
1933 if (LW_HASH_STATE(obj->lock) == LW_HASH_STATE_HASHED_AND_MOVED) { in objectSize()
/dalvik/vm/mterp/common/
Dasm-constants.h205 MTERP_OFFSET(offObject_lock, Object, lock, 4)
/dalvik/vm/oo/
DObject.h216 u4 lock; member
/dalvik/vm/jdwp/
DJdwpEvent.cpp625 dvmDbgLockMutex(&pReq->lock); in suspendByPolicy()
627 dvmDbgUnlockMutex(&pReq->lock); in suspendByPolicy()