Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Norman Ramsey
mosml
Commits
ce9dcb17
Commit
ce9dcb17
authored
Feb 24, 2011
by
Norman Ramsey
Browse files
hope to fix out-of-mem error on 64-bit platform
parent
879cca46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runtime/gc_ctrl.c
View file @
ce9dcb17
/* 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment