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

/dalvik/vm/
H A DLinearAlloc.c142 pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE,
144 if (pHdr->mapAddr == MAP_FAILED) {
156 pHdr->mapAddr = mmap(NULL, pHdr->mapLength, PROT_READ | PROT_WRITE,
158 if (pHdr->mapAddr == MAP_FAILED) {
167 assert(((int) pHdr->mapAddr & (SYSTEM_PAGE_SIZE-1)) == 0);
170 assert(*(u4*) (pHdr->mapAddr + pHdr->curOffset) == 0);
189 if (mprotect(pHdr->mapAddr, pHdr->mapLength, PROT_NONE) != 0) {
194 if (mprotect(pHdr->mapAddr + SYSTEM_PAGE_SIZE, SYSTEM_PAGE_SIZE,
215 pHdr->mapAddr, pHdr->mapAddr
[all...]
H A DLinearAlloc.h37 char* mapAddr; /* start of mmap()ed region */ member in struct:LinearAllocHdr
/dalvik/vm/analysis/
H A DDexPrepare.c514 void* mapAddr; local
515 mapAddr = mmap(NULL, dexOffset + dexLength, PROT_READ|PROT_WRITE,
517 if (mapAddr == MAP_FAILED) {
534 success = rewriteDex(((u1*) mapAddr) + dexOffset, dexLength,
539 u1* dexAddr = ((u1*) mapAddr) + dexOffset;
566 if (msync(mapAddr, dexOffset + dexLength, MS_SYNC) != 0) {
577 if (munmap(mapAddr, dexOffset + dexLength) != 0) {

Completed in 2854 milliseconds