valgrind works on test-stress
@@ -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) {
