mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
[3.14] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135053)
gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31b7f
)
Co-authored-by: Donghee Na <donghee.na@python.org>
This commit is contained in:
parent
d420d82c63
commit
78fd7ce3d2
1 changed files with 2 additions and 2 deletions
|
@ -634,10 +634,10 @@ static inline mi_block_t* mi_block_nextx( const void* null, const mi_block_t* bl
|
||||||
mi_track_mem_defined(block,sizeof(mi_block_t));
|
mi_track_mem_defined(block,sizeof(mi_block_t));
|
||||||
mi_block_t* next;
|
mi_block_t* next;
|
||||||
#ifdef MI_ENCODE_FREELIST
|
#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);
|
||||||
#else
|
#else
|
||||||
MI_UNUSED(keys); MI_UNUSED(null);
|
MI_UNUSED(keys); MI_UNUSED(null);
|
||||||
next = (mi_block_t*)mi_atomic_load_relaxed(&block->next);
|
next = (mi_block_t*)mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next);
|
||||||
#endif
|
#endif
|
||||||
mi_track_mem_noaccess(block,sizeof(mi_block_t));
|
mi_track_mem_noaccess(block,sizeof(mi_block_t));
|
||||||
return next;
|
return next;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue