Commit ce9dcb17 authored by Norman Ramsey's avatar Norman Ramsey
Browse files

hope to fix out-of-mem error on 64-bit platform

parent 879cca46
/* mosml/src/runtime/gc_ctrl.c
Updated 2008-03-05 to prevent malloc from using mmap()
*/
#include <malloc.h>
#include "alloc.h"
#include "debugger.h"
#include "gc.h"
......@@ -191,6 +195,8 @@ void init_gc (long minor_size, long major_incr, int percent_fr, int verb)
gc_message ("*** camlrunm: debug mode ***\n", 0);
#endif
verb_gc = verb;
/* Added 2008-03-05 to prevent malloc from using mmap() */
mallopt(M_MMAP_MAX, 0);
set_minor_heap_size (Bsize_wsize (norm_minsize (minor_size)));
major_heap_increment = Bsize_wsize (norm_heapincr (major_incr));
percent_free = norm_pfree (percent_fr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment