mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
GH-130396: Use computed stack limits on linux (GH-130398)
* Implement C recursion protection with limit pointers for Linux, MacOS and Windows * Remove calls to PyOS_CheckStack * Add stack protection to parser * Make tests more robust to low stacks * Improve error messages for stack overflow
This commit is contained in:
parent
99088ab081
commit
014223649c
58 changed files with 1295 additions and 1482 deletions
|
@ -3239,7 +3239,6 @@ PyInit__testcapi(void)
|
|||
PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);
|
||||
|
||||
PyModule_AddIntConstant(m, "the_number_three", 3);
|
||||
PyModule_AddIntMacro(m, Py_C_RECURSION_LIMIT);
|
||||
PyModule_AddObject(m, "INT32_MIN", PyLong_FromInt32(INT32_MIN));
|
||||
PyModule_AddObject(m, "INT32_MAX", PyLong_FromInt32(INT32_MAX));
|
||||
PyModule_AddObject(m, "UINT32_MAX", PyLong_FromUInt32(UINT32_MAX));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue