Searched defs:mCount (Results 1 - 4 of 4) sorted by relevance

/system/core/libpixelflinger/tinyutils/
H A DVectorImpl.h26 * For performance reasons, we expose mStorage and mCount
55 inline size_t size() const { return mCount; }
56 inline bool isEmpty() const { return mCount == 0; }
117 size_t mCount; // number of items member in class:android::VectorImpl
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.h70 mutable int32_t mCount; member in class:android::Assembly
H A DCodeCache.cpp104 : mCount(1), mSize(0)
120 android_atomic_inc(&mCount);
125 if (android_atomic_dec(&mCount) == 1) {
86 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 == NULL, Ó Ó, 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(1), 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 { android_atomic_inc(&mCount); } void Assembly::decStrong(const void*) const { if (android_atomic_dec(&mCount) == 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
H A DGGLAssembler.h128 : mRegFile(regFile), mGen(gen), mRegList(reglist), mCount(0)
143 mCount = count;
148 if (mCount == 1) {
161 int mCount; member in class:android::RegisterAllocator::Spill

Completed in 35 milliseconds