[Libreoffice-commits] core.git: sal/rtl
Stephan Bergmann
sbergman at redhat.com
Fri Jan 16 08:32:00 PST 2015
sal/rtl/alloc_arena.cxx | 11 -----------
1 file changed, 11 deletions(-)
New commits:
commit 550b6bf613494c30761629282fa622cfba871278
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jan 16 17:30:32 2015 +0100
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
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx
index 9f3b2d2..c733ecd 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)
{
More information about the Libreoffice-commits
mailing list