FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-131296: fix clang-cl warning in tracemalloc.c by vstinner · Pull Request #131514 · python/cpython · GitHub

/ cpython Public

gh-131296: fix clang-cl warning in tracemalloc.c - #131514

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:tracemalloc
Mar 22, 2025
Merged

gh-131296: fix clang-cl warning in tracemalloc.c#131514
vstinner merged 1 commit into
python:mainfrom
vstinner:tracemalloc

Conversation

vstinner commented Mar 20, 2025
edited
Loading

Copy link
Copy Markdown
Member

Always set MAX_NFRAME to UINT16_MAX.

Avoid the complicated code which emitted a compiler warning.

Always set MAX_NFRAME to UINT16_MAX.

Avoid the complicated code which emitted a compiler warning.

Copy link
Copy Markdown
Member Author

65535 is already the effective limit:

$ python
Python 3.13.2 (main, Feb  4 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import tracemalloc; tracemalloc.start(2**16+1)
Traceback (most recent call last):
ValueError: the number of frames must be in range [1; 65535]

vstinner removed needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 22, 2025
vstinner merged commit 9962469 into python:main Mar 22, 2025
vstinner deleted the tracemalloc branch March 22, 2025 09:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL