File: python-no-jemalloc.patch

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (19 lines) | stat: -rw-r--r-- 860 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Diane Trout <diane@ghic.org>
Description: loading python module linked to jemalloc shared library
  fails with "libjemalloc.so: cannot allocate memory in static TLS block"
  See https://github.com/jemalloc/jemalloc/issues/937
  The easy answer is to just use the system malloc instead.

Index: arrow/python/pyarrow/tests/test_memory.py
===================================================================
--- arrow.orig/python/pyarrow/tests/test_memory.py
+++ arrow/python/pyarrow/tests/test_memory.py
@@ -32,7 +32,7 @@ pytestmark = pytest.mark.processes
 possible_backends = ["system", "jemalloc", "mimalloc"]
 # Backends which are expected to be present in all builds of PyArrow,
 # except if the user manually recompiled Arrow C++.
-mandatory_backends = ["system", "mimalloc"]
+mandatory_backends = ["system"]
 
 
 def backend_factory(backend_name):