Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9b59dd47
Commit
9b59dd47
authored
Nov 21, 2014
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22869: Remove duplicate stack check from pythonrun.c
parent
fc9fdedd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
Python/pythonrun.c
Python/pythonrun.c
+0
-37
No files found.
Python/pythonrun.c
View file @
9b59dd47
...
...
@@ -1376,43 +1376,6 @@ cleanup:
}
#if defined(USE_STACKCHECK)
#if defined(WIN32) && defined(_MSC_VER)
/* Stack checking for Microsoft C */
#include <malloc.h>
#include <excpt.h>
/*
* Return non-zero when we run out of memory on the stack; zero otherwise.
*/
int
PyOS_CheckStack
(
void
)
{
__try
{
/* alloca throws a stack overflow exception if there's
not enough space left on the stack */
alloca
(
PYOS_STACK_MARGIN
*
sizeof
(
void
*
));
return
0
;
}
__except
(
GetExceptionCode
()
==
STATUS_STACK_OVERFLOW
?
EXCEPTION_EXECUTE_HANDLER
:
EXCEPTION_CONTINUE_SEARCH
)
{
int
errcode
=
_resetstkoflw
();
if
(
errcode
==
0
)
{
Py_FatalError
(
"Could not reset the stack!"
);
}
}
return
1
;
}
#endif
/* WIN32 && _MSC_VER */
/* Alternate implementations can be added here... */
#endif
/* USE_STACKCHECK */
/* Deprecated C API functions still provided for binary compatiblity */
#undef PyParser_SimpleParseFile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment