mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-02 01:34:38 +03:00
don't reset stats at process start so page_map commit is included
This commit is contained in:
parent
948c568665
commit
befe57f3e7
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
|
|
||||||
// Empty page used to initialize the small free pages array
|
// Empty page used to initialize the small free pages array
|
||||||
const mi_page_t _mi_page_empty = {
|
const mi_page_t _mi_page_empty = {
|
||||||
MI_ATOMIC_VAR_INIT(0), // xthread_id
|
MI_ATOMIC_VAR_INIT(0), // xthread_id
|
||||||
NULL, // free
|
NULL, // free
|
||||||
0, // used
|
0, // used
|
||||||
0, // capacity
|
0, // capacity
|
||||||
|
@ -725,7 +725,7 @@ void mi_process_init(void) mi_attr_noexcept {
|
||||||
_mi_prim_thread_associate_default_heap(NULL);
|
_mi_prim_thread_associate_default_heap(NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mi_stats_reset(); // only call stat reset *after* thread init (or the heap tld == NULL)
|
// mi_stats_reset(); // only call stat reset *after* thread init (or the heap tld == NULL)
|
||||||
mi_track_init();
|
mi_track_init();
|
||||||
|
|
||||||
if (mi_option_is_enabled(mi_option_reserve_huge_os_pages)) {
|
if (mi_option_is_enabled(mi_option_reserve_huge_os_pages)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue