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

gh-90815: Fix _PyMem_MimallocEnabled() compiler warning by vstinner · Pull Request #111522 · python/cpython · GitHub

/ cpython Public

gh-90815: Fix _PyMem_MimallocEnabled() compiler warning - #111522

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:mimalloc
Oct 30, 2023
Merged

gh-90815: Fix _PyMem_MimallocEnabled() compiler warning#111522
vstinner merged 1 commit into
python:mainfrom
vstinner:mimalloc

Conversation

vstinner commented Oct 30, 2023
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not defined (./configure --without-pymalloc).

Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().

Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not
defined (./configure --without-pymalloc).

Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().

Copy link
Copy Markdown
Member Author

I tested that no warnings is emitted with these 4 configurations:

pyconfigure_debug --with-pymalloc --with-mimalloc && make clean && make
pyconfigure_debug --with-pymalloc --without-mimalloc && make clean && make
pyconfigure_debug --without-pymalloc --with-mimalloc && make clean && make
pyconfigure_debug --without-pymalloc --without-mimalloc && make clean && make

with:

$ alias pyconfigure_debug
alias pyconfigure_debug='./configure --cache-file=../python-config.cache --with-pydebug CFLAGS=-O0 --with-system-expat'

vstinner merged commit da4d314 into python:main Oct 30, 2023
vstinner deleted the mimalloc branch October 30, 2023 22:05
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request Nov 3, 2023
…#111522)

Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not
defined (./configure --without-pymalloc).

Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…#111522)

Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not
defined (./configure --without-pymalloc).

Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…#111522)

Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not
defined (./configure --without-pymalloc).

Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().
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