extern "C" {
#include <sys/time.h>
#include <sys/resource.h>
+#include <malloc.h>
+
}
using std::string;
if (it == type_map->end())
result = Val_unit;
else
- result = caml_alloc_custom(it->second.first, it->second.second, 1, 2);
+ result = caml_alloc_custom(it->second.first, it->second.second, 1, 1);
CAMLreturn(result);
}
rlim.rlim_cur = RLIM_INFINITY;
setrlimit(RLIMIT_STACK, &rlim);
};
+ // mallopt(M_MMAP_THRESHOLD, 0);
return Val_unit;
}