开发者

Android Memory Allocator - Does memory need to be contiguous?

开发者 https://www.devze.com 2023-02-07 14:30 出处:网络
Does free heap space have to be contiguous for gralloc() calls to succeed?Or can gralloc(开发者_JAVA百科) return sparse free heap segments to satisfy a request? i.e. heap fragmentationI\'d say that\'s

Does free heap space have to be contiguous for gralloc() calls to succeed? Or can gralloc(开发者_JAVA百科) return sparse free heap segments to satisfy a request? i.e. heap fragmentation


I'd say that's up to the UMP device driver (which Gralloc merely interfaces with), but could be wrong. The driver/hardware may or may not have a way to map non contiguous UMP memory pages into a seemingly contiguous CPU address space. Does that make sense?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号