Skip to content

bpo-33720: Reduces maximum marshal recursion depth on release builds.#7401

Merged
zooba merged 1 commit intopython:masterfrom
zooba:bpo-33720
Jun 4, 2018
Merged

bpo-33720: Reduces maximum marshal recursion depth on release builds.#7401
zooba merged 1 commit intopython:masterfrom
zooba:bpo-33720

Conversation

@zooba
Copy link
Copy Markdown
Member

@zooba zooba commented Jun 4, 2018

if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'):
# BUG: https://bugs.python.org/issue33720
# Windows always limits the maximum depth on release and debug builds
#if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to mark it as a temporary fix, I suggest:

# Windows always limits the maximum depth on release and debug builds
if os.name == 'nt': 

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I want it to be a temporary fix :) I want the compiler bug that's generating bad stack frames to be fixed. Hopefully I'll hear back from them today whether it's really a bug or not though - if there's a good reason for it then this can become a permanent change.

@zooba zooba merged commit 2a4a62b into python:master Jun 4, 2018
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link
Copy Markdown

GH-7405 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 4, 2018
…pythonGH-7401)

(cherry picked from commit 2a4a62b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
miss-islington added a commit that referenced this pull request Jun 4, 2018
…GH-7401)

(cherry picked from commit 2a4a62b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants