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
25e0fe43
Commit
25e0fe43
authored
Feb 24, 2011
by
Norman Ramsey
Browse files
fix malloc bug on mosml web site
parent
15e1427a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runtime/gc_ctrl.c
View file @
25e0fe43
/* 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