From: Kim Nguyễn Date: Thu, 1 Mar 2012 13:26:24 +0000 (+0100) Subject: Pass debugging flags to malloc. X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=4fb1afc60e3af83e6184c77ea2cb002def542a96;p=SXSI%2Fxpathcomp.git Pass debugging flags to malloc. --- diff --git a/src/common_stub.cpp b/src/common_stub.cpp index dde97fa..12b354e 100644 --- a/src/common_stub.cpp +++ b/src/common_stub.cpp @@ -6,6 +6,8 @@ extern "C" { #include #include +#include + } using std::string; @@ -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; } diff --git a/src/common_stub.hpp b/src/common_stub.hpp index 438b5d2..47b6dcd 100644 --- a/src/common_stub.hpp +++ b/src/common_stub.hpp @@ -11,7 +11,6 @@ extern "C" { #include #include #include - } #include