diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-01-03 18:29:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 18:29:18 (GMT) |
commit | 9d35dedc5e7e940b639230fba93c763bd9f19c09 (patch) | |
tree | ef78245f7f08d1012db04413feb61ba36c7c92b5 /Parser/pegen.c | |
parent | c960b191b8999a9455bb4b2c50dc224d06fee80c (diff) | |
download | cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.zip cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.tar.gz cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.tar.bz2 |
Revert "bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)" (GH-30363)
This reverts commit e9898bf153d26059261ffef11f7643ae991e2a4c temporarily as we want to confirm if this commit is the cause of a slowdown at startup time.
Diffstat (limited to 'Parser/pegen.c')
-rw-r--r-- | Parser/pegen.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c index cfea1c8..870085e 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -815,7 +815,6 @@ void * _PyPegen_run_parser(Parser *p) { void *res = _PyPegen_parse(p); - assert(p->level == 0); if (res == NULL) { if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_SyntaxError)) { return NULL; |