projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refresh the installation procedure.
[SXSI/xpathcomp.git]
/
src
/
common_stub.cpp
diff --git
a/src/common_stub.cpp
b/src/common_stub.cpp
index
6f56d33
..
85be940
100644
(file)
--- a/
src/common_stub.cpp
+++ b/
src/common_stub.cpp
@@
-6,6
+6,8
@@
extern "C" {
#include <sys/time.h>
#include <sys/resource.h>
extern "C" {
#include <sys/time.h>
#include <sys/resource.h>
+#include <malloc.h>
+
}
using std::string;
}
using std::string;
@@
-63,7
+65,7
@@
value alloc_custom_(char* name)
if (it == type_map->end())
result = Val_unit;
else
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);
}
CAMLreturn(result);
}
@@
-81,11
+83,12
@@
extern "C" value sxsi_cpp_init(value unit)
rlim.rlim_cur = RLIM_INFINITY;
setrlimit(RLIMIT_STACK, &rlim);
};
rlim.rlim_cur = RLIM_INFINITY;
setrlimit(RLIMIT_STACK, &rlim);
};
+ // mallopt(M_MMAP_THRESHOLD, 0);
return Val_unit;
}
return Val_unit;
}
-void sxsi_raise_msg(char * msg)
+void sxsi_raise_msg(c
onst c
har * msg)
{
if (cpp_exception == 0) init_error();
caml_raise_with_string(*cpp_exception, msg);
{
if (cpp_exception == 0) init_error();
caml_raise_with_string(*cpp_exception, msg);