Skip to content

Conversation

@goodusername123
Copy link

Use Segment Heaps for memory (de)allocation if available via manifest opt-in. This applies to Win10 version 2004 and newer (such as Win11) otherwise falls back to the default NT Heaps. https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#heaptype

Testing shows that this reduces memory usage a little bit. attributes related to memory fragmentation have not been tested however Segment heaps are supposedly better in this regard as well.

!heap in WinDbg can be used to confirm that the memory heaps of the process(es) are indeed being allocated with the newer heap type.

Use Segment Heaps for memory (de)allocation if available via manifest opt-in (applies to Win10 version 2004 and newer (such as Win11) otherwise falls back to the default NT Heaps).
https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#heaptype
@hpwamr hpwamr requested a review from RaiKoHoff November 20, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant