Dalvik 线性分配
时间:2010-08-20 来源:hunterzy416
Dalvik线性分配的数据结构
/*
* Linear allocation state. We could tuck this into the start of the
* allocated region, but that would prevent us from sharing the rest of
* that first page.
*/
typedef struct LinearAllocHdr {
int curOffset; /* offset where next data goes */
pthread_mutex_t lock; /* controls updates to this struct */
char* mapAddr; /* start of mmap()ed region */
int mapLength; /* length of region */
int firstOffset; /* for chasing through */
short* writeRefCount; /* for ENFORCE_READ_ONLY */
} LinearAllocHdr;
线性表数据结构
相关阅读 更多 +
排行榜 更多 +









![《月兽围城》 v20251208升级档+未加密补丁[TENOKE]](https://images.phpfans.net/img/f1/20251225/logo_694c23c2b71361.jpg)
![《冲就完事模拟器2》 v1.1.3升级档+未加密补丁[TENOKE]](https://images.phpfans.net/img/f1/20251225/logo_694c23bfa30b91.jpg)