MDEV-14315 -- Reflect use of tcmalloc in a system variable and error log

* The version of tcmalloc is written to the system variable
    'version_malloc_library' if tcmalloc is used, similarly to
    jemalloc
  * Extracted method guess_malloc_library()
This commit is contained in:
Vesa Pentti 2017-12-11 19:20:37 +00:00
commit 7fd7805574
4 changed files with 68 additions and 22 deletions

View file

@ -154,6 +154,8 @@ typedef struct my_aio_result {
/* Extra length needed for filename if one calls my_create_backup_name */
#define MY_BACKUP_NAME_EXTRA_LENGTH 17
char *guess_malloc_library();
/* If we have our own safemalloc (for debugging) */
#if defined(SAFEMALLOC)
void sf_report_leaked_memory(my_thread_id id);