开发者

How does iOS solve memory fragmentation?

I couldn't find any documentation about memory management of iOS. Especially about memory开发者_如何学JAVA fragmentation. If you know any document about this, please let me know.


Memory fragmentation correction is an implementation detail. You should never, in any way, directly deal with it. However if you are worried that your objects will be moved around without notifying your code, don't; apple never moves objects - end of story. Once memory is allocated, it's yours (even if a framework class's instance is occupying it) until it is deallocated. That being said, from an academic perspective I see no reason why the iPhone shouldn't use at least a similar strategy to MacOS, on which there is an excellent article here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜