mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
add dynamic override test on windows
This commit is contained in:
parent
84aadcb087
commit
3e7875066b
2 changed files with 24 additions and 7 deletions
|
@ -268,7 +268,17 @@ static void test_leak(void) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(USE_STD_MALLOC) && defined(MI_LINK_VERSION)
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
int mi_version(void);
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
#ifdef MI_LINK_VERSION
|
||||
mi_version();
|
||||
#endif
|
||||
#ifdef HEAP_WALK
|
||||
mi_option_enable(mi_option_visit_abandoned);
|
||||
#endif
|
||||
|
@ -318,7 +328,7 @@ int main(int argc, char** argv) {
|
|||
#ifndef NDEBUG
|
||||
mi_debug_show_arenas();
|
||||
mi_collect(true);
|
||||
#endif
|
||||
#endif
|
||||
mi_stats_print(NULL);
|
||||
#endif
|
||||
//bench_end_program();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue