PR#2016
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6048 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
0c7aecb88d
commit
6652a576a6
|
@ -63,7 +63,7 @@ char *caml_alloc_for_heap (asize_t request)
|
||||||
void caml_free_for_heap (char *mem)
|
void caml_free_for_heap (char *mem)
|
||||||
{
|
{
|
||||||
#ifdef USE_MMAP_INSTEAD_OF_MALLOC
|
#ifdef USE_MMAP_INSTEAD_OF_MALLOC
|
||||||
aligned_caml_munmap (Chunk_block (mem),
|
caml_aligned_munmap (Chunk_block (mem),
|
||||||
Chunk_size (mem) + sizeof (heap_chunk_head));
|
Chunk_size (mem) + sizeof (heap_chunk_head));
|
||||||
#else
|
#else
|
||||||
free (Chunk_block (mem));
|
free (Chunk_block (mem));
|
||||||
|
|
Loading…
Reference in New Issue