mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-14 16:47:59 +08:00
valgrind works on test-stress
This commit is contained in:
parent
eee7c40da5
commit
c61b365e76
@ -476,7 +476,6 @@ static void mi_segment_os_free(mi_segment_t* segment, size_t segment_size, mi_se
|
||||
fully_committed = false;
|
||||
}
|
||||
_mi_mem_free(segment, segment_size, segment->memid, fully_committed, any_reset, tld->os);
|
||||
//mi_track_mem_noaccess(segment,segment_size);
|
||||
}
|
||||
|
||||
// called by threads that are terminating to free cached segments
|
||||
@ -592,7 +591,7 @@ static mi_segment_t* mi_segment_init(mi_segment_t* segment, size_t required, mi_
|
||||
}
|
||||
mi_assert_internal(segment != NULL && (uintptr_t)segment % MI_SEGMENT_SIZE == 0);
|
||||
mi_assert_internal(segment->mem_is_pinned ? segment->mem_is_committed : true);
|
||||
//mi_track_mem_defined(segment,info_size);
|
||||
mi_track_mem_defined(segment,info_size);
|
||||
|
||||
mi_atomic_store_ptr_release(mi_segment_t, &segment->abandoned_next, NULL); // tsan
|
||||
if (!pages_still_good) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user