64 bit large mallocs

后端 未结 9 1958
情话喂你
情话喂你 2020-11-28 13:18

What are the reasons a malloc() would fail, especially in 64 bit?

My specific problem is trying to malloc a huge 10GB chunk of RAM on a 64 bit system. The machine ha

9条回答
  •  一向
    一向 (楼主)
    2020-11-28 13:57

    But why else could a malloc fail? I can't think of other reasons

    As implicitly stated previously several times, because of memory fragmentation

提交回复
热议问题