Skip to content

Commit befe57f

Browse files
committed
don't reset stats at process start so page_map commit is included
1 parent 948c568 commit befe57f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ terms of the MIT license. A copy of the license can be found in the file
1616

1717
// Empty page used to initialize the small free pages array
1818
const mi_page_t _mi_page_empty = {
19-
MI_ATOMIC_VAR_INIT(0), // xthread_id
19+
MI_ATOMIC_VAR_INIT(0), // xthread_id
2020
NULL, // free
2121
0, // used
2222
0, // capacity
@@ -725,7 +725,7 @@ void mi_process_init(void) mi_attr_noexcept {
725725
_mi_prim_thread_associate_default_heap(NULL);
726726
#endif
727727

728-
mi_stats_reset(); // only call stat reset *after* thread init (or the heap tld == NULL)
728+
// mi_stats_reset(); // only call stat reset *after* thread init (or the heap tld == NULL)
729729
mi_track_init();
730730

731731
if (mi_option_is_enabled(mi_option_reserve_huge_os_pages)) {

0 commit comments

Comments
 (0)