Home
last modified time | relevance | path

Searched refs:mapAddr (Results 1 – 3 of 3) sorted by relevance

/dalvik/vm/
DLinearAlloc.cpp142 pHdr->mapAddr = (char*)mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE, in dvmLinearAllocCreate()
144 if (pHdr->mapAddr == MAP_FAILED) { in dvmLinearAllocCreate()
156 pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE, in dvmLinearAllocCreate()
158 if (pHdr->mapAddr == MAP_FAILED) { in dvmLinearAllocCreate()
167 assert(((int) pHdr->mapAddr & (SYSTEM_PAGE_SIZE-1)) == 0); in dvmLinearAllocCreate()
170 assert(*(u4*) (pHdr->mapAddr + pHdr->curOffset) == 0); in dvmLinearAllocCreate()
189 if (mprotect(pHdr->mapAddr, pHdr->mapLength, PROT_NONE) != 0) { in dvmLinearAllocCreate()
194 if (mprotect(pHdr->mapAddr + SYSTEM_PAGE_SIZE, SYSTEM_PAGE_SIZE, in dvmLinearAllocCreate()
215 pHdr->mapAddr, pHdr->mapAddr + pHdr->mapLength-1); in dvmLinearAllocCreate()
240 ALOGV("Unmapping linear allocator base=%p", pHdr->mapAddr); in dvmLinearAllocDestroy()
[all …]
DLinearAlloc.h37 char* mapAddr; /* start of mmap()ed region */ member
/dalvik/vm/analysis/
DDexPrepare.cpp565 void* mapAddr; in dvmContinueOptimization() local
566 mapAddr = mmap(NULL, dexOffset + dexLength, PROT_READ|PROT_WRITE, in dvmContinueOptimization()
568 if (mapAddr == MAP_FAILED) { in dvmContinueOptimization()
602 success = rewriteDex(((u1*) mapAddr) + dexOffset, dexLength, in dvmContinueOptimization()
607 u1* dexAddr = ((u1*) mapAddr) + dexOffset; in dvmContinueOptimization()
634 if (msync(mapAddr, dexOffset + dexLength, MS_SYNC) != 0) { in dvmContinueOptimization()
645 if (munmap(mapAddr, dexOffset + dexLength) != 0) { in dvmContinueOptimization()