Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1f3a00

Browse files
committed
Merge 3.4 (faulthandler ICC)
2 parents 4dc2c22 + 19276f1 commit d1f3a00

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ Doug Fort
440440
Chris Foster
441441
John Fouhy
442442
Andrew Francis
443+
Matt Frank
443444
Stefan Franke
444445
Martin Franklin
445446
Kent Frazier

Modules/faulthandler.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,14 @@ faulthandler_fatal_error_py(PyObject *self, PyObject *args)
941941
}
942942

943943
#if defined(HAVE_SIGALTSTACK) && defined(HAVE_SIGACTION)
944-
static Py_uintptr_t
944+
#ifdef __INTEL_COMPILER
945+
/* Issue #23654: Turn off ICC's tail call optimization for the
946+
* stack_overflow generator. ICC turns the recursive tail call into
947+
* a loop. */
948+
# pragma intel optimization_level 0
949+
#endif
950+
static
951+
Py_uintptr_t
945952
stack_overflow(Py_uintptr_t min_sp, Py_uintptr_t max_sp, size_t *depth)
946953
{
947954
/* allocate 4096 bytes on the stack at each call */

0 commit comments

Comments
 (0)