summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2017-11-15 16:52:44 +0530
committerDennis Francis <dennis.francis@collabora.co.uk>2017-11-21 16:09:43 +0530
commitbc6a5d8e79e7d0e7d75ac107aa8e6aa275e434e9 (patch)
tree92c01748e1447d8c0f3e6c91d04656eb241e02df
parent4defacd1fa2be800f3e7258abbb4ef2cd1834d31 (diff)
Disable custom allocator
This has big positive effect on software interpreter threading performance scaling. Change-Id: I8fbb6bf8f7ed410fd53278acee63bf65f13bac38
-rw-r--r--sal/rtl/alloc_global.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/alloc_global.cxx b/sal/rtl/alloc_global.cxx
index 3d74287bc7e5..47643f3ea74a 100644
--- a/sal/rtl/alloc_global.cxx
+++ b/sal/rtl/alloc_global.cxx
@@ -35,7 +35,7 @@ AllocMode alloc_mode = AllocMode::UNSET;
static void determine_alloc_mode()
{
assert(alloc_mode == AllocMode::UNSET);
- alloc_mode = (getenv("G_SLICE") == nullptr ? AllocMode::CUSTOM : AllocMode::SYSTEM);
+ alloc_mode = AllocMode::SYSTEM;
}
static const sal_Size g_alloc_sizes[] =