Add debug version to verify that correct build is used for testing

This commit is contained in:
Sergiy Kuryata 2025-01-08 10:20:26 -08:00
parent 5e16662cd4
commit 94bdbe41bb
2 changed files with 7 additions and 0 deletions

View file

@ -385,6 +385,8 @@ mi_decl_export bool mi_get_segment_stats(size_t* abandoned, size_t* reclaimed, s
mi_allocation_counter_t* free_space_in_segments, int free_space_in_segments_count,
mi_allocation_counter_t* allocated_memory, int allocated_memory_count);
mi_decl_export size_t mi_get_debug_stat_version();
// -------------------------------------------------------------------------------------------------------
// "mi" prefixed implementations of various posix, Unix, Windows, and C++ allocation functions.

View file

@ -221,6 +221,11 @@ bool mi_get_segment_stats(size_t* abandoned, size_t* reclaimed, size_t* reclaim_
return true;
}
size_t mi_get_debug_stat_version()
{
return 20250108;
}
/* -----------------------------------------------------------
Statistics operations
----------------------------------------------------------- */