Commit 9f8d32bc authored by Marius Wachtler's avatar Marius Wachtler Committed by Stefan Behnel

pyston support: backport memory corruption fix GH-4200 to 0.29.x branch (GH-4488)

Fixes an issue which Pyston triggers.
See https://github.com/cython/cython/issues/4200
parent 08af86a9
......@@ -54,7 +54,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
}
}
#if PY_VERSION_HEX >= 0x03050000
#if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION)
{
// Make sure GC does not pick up our non-heap type as heap type with this hack!
// For details, see https://github.com/cython/cython/issues/3603
......@@ -93,7 +93,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
r = PyType_Ready(t);
#if PY_VERSION_HEX >= 0x03050000
#if PY_VERSION_HEX >= 0x03050000 && !defined(PYSTON_MAJOR_VERSION)
t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
if (gc_was_enabled) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment