X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fcommon_stub.cpp;h=12b354eca2b741fdd264c357f4714cf4f5107133;hb=2a7218fd2a985ed57732f9f7b9a0b62f4b2c83df;hp=6f56d33f6190ba1b87b542222051a1b0a23386a5;hpb=ff13d22656fdbdffb2d909192bd17ba135606224;p=SXSI%2Fxpathcomp.git diff --git a/src/common_stub.cpp b/src/common_stub.cpp index 6f56d33..12b354e 100644 --- a/src/common_stub.cpp +++ b/src/common_stub.cpp @@ -6,6 +6,8 @@ extern "C" { #include #include +#include + } using std::string; @@ -63,7 +65,7 @@ value alloc_custom_(char* name) 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); } @@ -81,6 +83,7 @@ extern "C" value sxsi_cpp_init(value unit) rlim.rlim_cur = RLIM_INFINITY; setrlimit(RLIMIT_STACK, &rlim); }; + // mallopt(M_MMAP_THRESHOLD, 0); return Val_unit; }