Searched defs:PROT_EXEC (Results 1 - 3 of 3) sorted by relevance

/system/core/include/backtrace/
H A DBacktraceMap.h27 #define PROT_EXEC 0x4 macro
76 bool IsExecutable(uintptr_t pc) { return GetFlags(pc) & PROT_EXEC; }
/system/core/libbacktrace/include/backtrace/
H A DBacktraceMap.h27 #define PROT_EXEC 0x4 macro
76 bool IsExecutable(uintptr_t pc) { return GetFlags(pc) & PROT_EXEC; }
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp88 PROT_READ | PROT_WRITE | PROT_EXEC,
84 LOG_ALWAYS_FATAL_IF(fd < 0, � �, strerror(errno)); gExecutableStore = mmap(NULL, kMaxCodeCacheCapacity, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); LOG_ALWAYS_FATAL_IF(gExecutableStore == MAP_FAILED, � �, strerror(errno)); close(fd); gMspace = create_mspace_with_base(gExecutableStore, kMaxCodeCacheCapacity, false); mspace_set_footprint_limit(gMspace, kMaxCodeCacheCapacity); } return gMspace; } Assembly::Assembly(size_t size) : mCount(0), mSize(0) { mBase = (uint32_t*)mspace_malloc(getMspace(), size); LOG_ALWAYS_FATAL_IF(mBase == NULL, � �, size, kMaxCodeCacheCapacity); mSize = size; } Assembly::~Assembly() { mspace_free(getMspace(), mBase); } void Assembly::incStrong(const void*) const { mCount.fetch_add(1, std::memory_order_relaxed); } void Assembly::decStrong(const void*) const { if (mCount.fetch_sub(1, std::memory_order_acq_rel) == 1) { delete this; } } ssize_t Assembly::size() const { if (!mBase) return NO_MEMORY; return mSize; } uint32_t* Assembly::base() const { return mBase; } ssize_t Assembly::resize(size_t newSize) { mBase = (uint32_t*)mspace_realloc(getMspace(), mBase, newSize); LOG_ALWAYS_FATAL_IF(mBase == NULL, � �, newSize, kMaxCodeCacheCapacity); mSize = newSize; return size(); } CodeCache::CodeCache(size_t size) : mCacheSize(size), mCacheInUse(0) { pthread_mutex_init(&mLock, 0); } CodeCache::~CodeCache() { pthread_mutex_destroy(&mLock); } sp<Assembly> CodeCache::lookup(const AssemblyKeyBase& keyBase) const { pthread_mutex_lock(&mLock); sp<Assembly> r; ssize_t index = mCacheData.indexOfKey(key_t(keyBase)); if (index >= 0) argument

Completed in 431 milliseconds