Skip to content

Commit 75740fb

Browse files
committed
Update pyarrow patch
1 parent 86e2fa9 commit 75740fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

graalpython/lib-graalpython/patches/pyarrow/pyarrow-12.0.0.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ index 46ea021..58a3fb5 100644
1111
SendSignal(exc_value.signum)
1212
else:
1313
SendSignalToThread(exc_value.signum,
14+
diff --git a/pyarrow/tests/test_memory.py b/pyarrow/tests/test_memory.py
15+
index 092c50d..931b3fa 100644
16+
--- a/pyarrow/tests/test_memory.py
17+
+++ b/pyarrow/tests/test_memory.py
18+
@@ -44,6 +44,9 @@ def allocate_bytes(pool, nbytes):
19+
"""
20+
Temporarily allocate *nbytes* from the given *pool*.
21+
"""
22+
+ # GraalPy change: the buffers don't maintain a python reference to their
23+
+ # pool, so they may get destroyed after their pool, which segfaults
24+
+ raise RuntimeError("GraalPy: destructors segfault")
25+
arr = pa.array([b"x" * nbytes], type=pa.binary(), memory_pool=pool)
26+
# Fetch the values buffer from the varbinary array and release the rest,
27+
# to get the desired allocation amount
1428
diff --git a/pyarrow_build_backend.py b/pyarrow_build_backend.py
1529
new file mode 100644
1630
index 0000000..c9826ce

0 commit comments

Comments
 (0)