Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Understanding the managed heap

Discussion in 'Documentation' started by BrightBit, Jul 29, 2021.

  1. BrightBit

    BrightBit

    Joined:
    Jan 22, 2013
    Posts:
    264
    There is the following statement in the documentation Understanding the managed heap:

    The address space used by the managed heap is never returned to the operating system.

    However, there is another statement right before that:

    On most platforms, Unity eventually releases the [allocated memory] pages used by empty portions of the managed heap back to the operating system.

    Can someone explain that difference? It sounds like a contradiction to me. What am I missing here?