@@ -430,7 +430,7 @@ static inline mi_slice_t* mi_page_to_slice(mi_page_t* p) {
430
430
431
431
// Segment belonging to a page
432
432
static inline mi_segment_t * _mi_page_segment (const mi_page_t * page) {
433
- mi_segment_t * segment = _mi_ptr_segment (page);
433
+ mi_segment_t * segment = _mi_ptr_segment (page);
434
434
mi_assert_internal (segment == NULL || ((mi_slice_t *)page >= segment->slices && (mi_slice_t *)page < segment->slices + segment->slice_entries ));
435
435
return segment;
436
436
}
@@ -676,10 +676,10 @@ static inline mi_block_t* mi_block_nextx( const void* null, const mi_block_t* bl
676
676
static inline void mi_block_set_nextx (const void * null, mi_block_t * block, const mi_block_t * next, const uintptr_t * keys) {
677
677
mi_track_mem_undefined (block,sizeof (mi_block_t ));
678
678
#ifdef MI_ENCODE_FREELIST
679
- block->next = mi_ptr_encode (null, next, keys);
679
+ _Py_atomic_store_uintptr_relaxed (& block->next , mi_ptr_encode (null, next, keys) );
680
680
#else
681
681
MI_UNUSED (keys); MI_UNUSED (null);
682
- block->next = (mi_encoded_t )next;
682
+ _Py_atomic_store_uintptr_relaxed (& block->next , (mi_encoded_t )next) ;
683
683
#endif
684
684
mi_track_mem_noaccess (block,sizeof (mi_block_t ));
685
685
}
@@ -746,12 +746,12 @@ size_t _mi_commit_mask_next_run(const mi_commit_mask_t* cm, size_t* idx);
746
746
747
747
#define mi_commit_mask_foreach (cm,idx,count ) \
748
748
idx = 0 ; \
749
- while ((count = _mi_commit_mask_next_run(cm,&idx)) > 0 ) {
750
-
749
+ while ((count = _mi_commit_mask_next_run(cm,&idx)) > 0 ) {
750
+
751
751
#define mi_commit_mask_foreach_end () \
752
752
idx += count; \
753
753
}
754
-
754
+
755
755
756
756
757
757
/* -----------------------------------------------------------
0 commit comments