Skip to content
  • Georgi Kodinov's avatar
    1ea2c0a3
    Bug #19031370: ADD SUPPORT FOR VISUAL STUDIO CRT MEMORY LEAKS TRACKING · 1ea2c0a3
    Georgi Kodinov authored
    Added support for MS Visual Studio CRT memory leak tracing:
    * Made a new CMake parameter : WITH_MSCRT_DEBUG=YES/NO (default NO)
    * Added a code to my_init.c to initialize the CRT debugging to print to stderr
    * Enabled convertion all malloc to _malloc_dbg, calloc to _calloc_dbg  and realloc to _realloc_dbg to get line numbers in the report
    * Renamed all the class methods and members named free/malloc/calloc/realloc to mem_free/mem_malloc/mem_calloc/mem_realloc to avoid
      conflicts with the #define
    * Marked the my_malloc/my_free allocations as "client" blocks and left all the others as "normal" blocks.
    * Made sure NDB compiles too
    * Addressed Magnus' comments (renamed some of the ndb mem_free to more meaningful names)
    * Addressed second set of Magnus' comments (renamed num_free_bytes) to num_free.
    * updated to the latest trunk
    * fixed an ndb compilation failure on windows
    * Addressed Jon-Olav's remarks: moved definiton out of my_global.h, some cmake cleanups.
    1ea2c0a3
    Bug #19031370: ADD SUPPORT FOR VISUAL STUDIO CRT MEMORY LEAKS TRACKING
    Georgi Kodinov authored
    Added support for MS Visual Studio CRT memory leak tracing:
    * Made a new CMake parameter : WITH_MSCRT_DEBUG=YES/NO (default NO)
    * Added a code to my_init.c to initialize the CRT debugging to print to stderr
    * Enabled convertion all malloc to _malloc_dbg, calloc to _calloc_dbg  and realloc to _realloc_dbg to get line numbers in the report
    * Renamed all the class methods and members named free/malloc/calloc/realloc to mem_free/mem_malloc/mem_calloc/mem_realloc to avoid
      conflicts with the #define
    * Marked the my_malloc/my_free allocations as "client" blocks and left all the others as "normal" blocks.
    * Made sure NDB compiles too
    * Addressed Magnus' comments (renamed some of the ndb mem_free to more meaningful names)
    * Addressed second set of Magnus' comments (renamed num_free_bytes) to num_free.
    * updated to the latest trunk
    * fixed an ndb compilation failure on windows
    * Addressed Jon-Olav's remarks: moved definiton out of my_global.h, some cmake cleanups.
Loading