diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-16 17:30:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-16 17:31:29 +0100 |
commit | 550b6bf613494c30761629282fa622cfba871278 (patch) | |
tree | 2708b11c76fc525c66e9afda1305fb1b35a553a4 /sal | |
parent | e60b589952985edff12b1a28392ce6fa0ca8d9be (diff) |
rtl_arena_alloc must never obey AMode_SYSTEM
...as e.g. the read+write+exec arena used in
bridges/source/cpp_uno/shared/vtablefactory.cxx has specific requirements on
obtained memory. This broke recent 8b9968a26265facaf5e761485d750ce9cedab3ab
"fdo#72755: Only use double mmap as fallback" for e.g. --enable-ooenv (which
sets G_SLICE). This is a partial revert of
ce906b8096081dee15dc8cc96e570d5b0b587955 "skip tricky allocators on
G_SLICE=always-malloc."
Change-Id: I5a5fb7c3c920a7856381e6c55638137c625b5111
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/alloc_arena.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index 9f3b2d237274..c733ecded529 100644 --- a/sal/rtl/alloc_arena.cxx +++ b/sal/rtl/alloc_arena.cxx @@ -28,8 +28,6 @@ #include <string.h> #include <stdio.h> -extern AllocMode alloc_mode; - /* ================================================================= * * * arena internals. @@ -950,9 +948,6 @@ SAL_CALL rtl_arena_alloc ( { sal_Size size; - if (alloc_mode == AMode_SYSTEM) - return rtl_allocateMemory(*pSize); - size = RTL_MEMORY_ALIGN((*pSize), arena->m_quantum); if (size > arena->m_qcache_max) { @@ -1022,12 +1017,6 @@ SAL_CALL rtl_arena_free ( { if (arena != 0) { - if (alloc_mode == AMode_SYSTEM) - { - rtl_freeMemory(addr); - return; - } - size = RTL_MEMORY_ALIGN(size, arena->m_quantum); if (size > arena->m_qcache_max) { |