This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-06 00:00:01 +00:00
parent 8b0b9c6127
commit 58fc9624c6

View File

@@ -21499,6 +21499,9 @@ echo 1 > /proc/sys/vm/overcommit_memory
<div class="paragraph">
<p>If we add the MAP_ANONYMOUS Linux extension however, this is not required, and mmap can be used to allocate memory like malloc.</p>
</div>
<div class="paragraph">
<p>Answers: <a href="https://stackoverflow.com/questions/4779188/how-to-use-mmap-to-allocate-a-memory-in-heap" class="bare">https://stackoverflow.com/questions/4779188/how-to-use-mmap-to-allocate-a-memory-in-heap</a></p>
</div>
</div>
<div class="sect4">
<h5 id="mmap-file"><a class="anchor" href="#mmap-file"></a><a class="link" href="#mmap-file">21.3.4.2. mmap file</a></h5>