We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9aa2d commit 9a14927Copy full SHA for 9a14927
cypari2/stack.pyx
@@ -19,7 +19,7 @@ cimport cython
19
20
from cpython.ref cimport PyObject, Py_XINCREF, Py_XDECREF
21
22
-from cysignals.signals cimport sig_off
+from cysignals.signals cimport sig_on, sig_off
23
from cysignals.memory cimport check_malloc, sig_free
24
25
from .gen cimport Gen, Gen_new
@@ -118,8 +118,10 @@ cdef int move_gens_to_heap(pari_sp lim) except -1:
118
avma <= lim.
119
"""
120
while avma <= lim and stackbottom is not <PyObject*>top_of_stack:
121
+ sig_on()
122
current = <Gen>stackbottom
123
h = gclone(current.g)
124
+ sig_off()
125
remove_from_pari_stack(current)
126
current.g = current.address = h
127
0 commit comments