Skip to content

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Jun 1, 2025

mi_block_t* next;
#ifdef MI_ENCODE_FREELIST
next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed(&block->next), keys);
next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next), keys);
Copy link
Member Author

Choose a reason for hiding this comment

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

block is declared as const mi_block_t* block, so this issue happens. other way is to change the function signature, but I don't prefer it.

@jmroot
Copy link
Contributor

jmroot commented Jun 1, 2025

@corona10 Thank you, I can confirm that this fixes the compilation error.

@corona10
Copy link
Member Author

corona10 commented Jun 1, 2025

Let's wait @colesbury before merging this PR. Thanks for the verification.

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

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

LGTM

@colesbury colesbury added the needs backport to 3.14 bugs and security fixes label Jun 2, 2025
@corona10 corona10 merged commit b525e31 into python:main Jun 2, 2025
48 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 2, 2025

GH-135053 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 2, 2025
@corona10 corona10 added the needs backport to 3.13 bugs and security fixes label Jun 2, 2025
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 2, 2025

GH-135054 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 2, 2025
@corona10 corona10 deleted the gh-134875 branch June 2, 2025 23:42
corona10 added a commit that referenced this pull request Jun 3, 2025
…34994) (gh-135053)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <[email protected]>
corona10 added a commit that referenced this pull request Jun 3, 2025
…34994) (gh-135054)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <[email protected]>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
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.

3 participants