Is there any benefit to use multiple heaps for memory management purposes?

前端 未结 5 2068
-上瘾入骨i
-上瘾入骨i 2021-02-15 17:37

I am a student of a system software faculty. Now I\'m developing a memory manager for Windows. Here\'s my simple implementation of malloc() and free():

5条回答
  •  别跟我提以往
    2021-02-15 17:46

    A reason would be the scenario that you need to execute a program internally e.g. running simulation code. By creating your own heap you could allow that heap to have execution rights which by default for security reasons is turned off. (Windows)

提交回复
热议问题