Skip to content

Commit 3d32174

Browse files
committed
Cython-0.29.32.patch
- skip internal access to the GC if graalpy
1 parent c9738d0 commit 3d32174

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graalpython/lib-graalpython/patches/Cython/sdist/Cython-0.29.32.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c
2+
index 1ad27df..0965cb2 100644
3+
--- a/Cython/Utility/Coroutine.c
4+
+++ b/Cython/Utility/Coroutine.c
5+
@@ -1299,7 +1299,7 @@ static void __Pyx_Coroutine_del(PyObject *self) {
6+
_Py_NewReference(self);
7+
__Pyx_SET_REFCNT(self, refcnt);
8+
}
9+
-#if CYTHON_COMPILING_IN_CPYTHON
10+
+#if CYTHON_COMPILING_IN_CPYTHON && !GRAALVM_PYTHON
11+
assert(PyType_IS_GC(Py_TYPE(self)) &&
12+
_Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
13+
114
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
215
index f8bf885..9c2534d 100644
316
--- a/Cython/Utility/ModuleSetupCode.c

0 commit comments

Comments
 (0)