How does iOS solve memory fragmentation?

I could not find the iOS memory management documentation. Especially about memory fragmentation. If you know any document about this, let me know.

+4
source share
1 answer

Memory fragmentation correction is an implementation detail. You should by no means be directly involved in this. However, if you are concerned that your objects will be moved without notifying your code, do not; an apple never moves objects - the end of the story. When a memory allocation is allocated, it is yours (even if an instance of the wireframe class occupies it) until it is freed. At the same time, from a scientific point of view, I see no reason why the iPhone should not use at least a similar strategy for MacOS, which has an excellent article here .

+3
source

Source: https://habr.com/ru/post/1313302/


All Articles