Resources | Resources |



Managing fragmentation in Brew MP applications

In Brew MP applications, all addresses are physical and all applications share the same address space. This means that Brew MP applications must be mindful of fragmentation issues throughout execution. When an application starts, the heap may already be fragmented, and the application must be able to gracefully handle it. When an application suspends, it must ensure it does not leave the heap in a fragmented state for the next application.

This section discusses ways in which applications can better manage heap usage, including:

  • Making more efficient use of the memory available
  • Ensuring that the heap does not become fragmented
  • Dealing with a heap that has already been fragmented by other applications