mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 17:24:38 +03:00
fix merge conflict
This commit is contained in:
parent
ed474ce525
commit
0c62893367
2 changed files with 4 additions and 5 deletions
|
@ -407,10 +407,6 @@ void _mi_stats_merge_from(mi_stats_t* to, mi_stats_t* from) {
|
|||
}
|
||||
}
|
||||
|
||||
void _mi_stats_merge_thread(mi_tld_t* tld) {
|
||||
_mi_stats_merge_from( &tld->subproc->stats, &tld->stats );
|
||||
}
|
||||
|
||||
void _mi_stats_done(mi_stats_t* stats) { // called from `mi_thread_done`
|
||||
_mi_stats_merge_from(&_mi_subproc()->stats, stats);
|
||||
}
|
||||
|
|
|
@ -86,9 +86,12 @@ int main(void) {
|
|||
CHECK_BODY("malloc-nomem1") {
|
||||
result = (mi_malloc((size_t)PTRDIFF_MAX + (size_t)1) == NULL);
|
||||
};
|
||||
CHECK_BODY("malloc-null") {
|
||||
CHECK_BODY("malloc-free-null") {
|
||||
mi_free(NULL);
|
||||
};
|
||||
CHECK_BODY("malloc-free-invalid-low") {
|
||||
mi_free((void*)(MI_ZU(0x0000000003990080))); // issue #1087
|
||||
};
|
||||
CHECK_BODY("calloc-overflow") {
|
||||
// use (size_t)&mi_calloc to get some number without triggering compiler warnings
|
||||
result = (mi_calloc((size_t)&mi_calloc,SIZE_MAX/1000) == NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue