[Libreoffice-commits] core.git: sal/rtl
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Sep 30 22:42:54 PDT 2015
sal/rtl/alloc_global.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 6e8e898acb9f6825104f01d090f447e8dfc7e4a2
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Thu Oct 1 07:38:47 2015 +0200
Revert "by default use the system memory allocator"
It seems that even on Linux the system allocator is worse than our
internal allocator. e.g:
http://perf.libreoffice.org/perf_html/chitest_of_cppu_sc_on_vm139.details.html
This reverts commit 006d30b1a29e2c471a96c0f4658beea8cb86b338.
diff --git a/sal/rtl/alloc_global.cxx b/sal/rtl/alloc_global.cxx
index 6961063..60dbc9c 100644
--- a/sal/rtl/alloc_global.cxx
+++ b/sal/rtl/alloc_global.cxx
@@ -35,11 +35,7 @@ AllocMode alloc_mode = AMode_UNSET;
static void determine_alloc_mode()
{
assert(alloc_mode == AMode_UNSET);
- const char* alloc_string = getenv("G_SLICE");
- if (!alloc_string)
- alloc_mode = AMode_SYSTEM;
- else
- alloc_mode = strcmp(alloc_string, "always-malloc") == 0 ? AMode_SYSTEM : AMode_CUSTOM;
+ alloc_mode = (getenv("G_SLICE") == NULL ? AMode_CUSTOM : AMode_SYSTEM);
}
/* ================================================================= *
More information about the Libreoffice-commits
mailing list