summaryrefslogtreecommitdiff
path: root/mysys/my_static.h
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2002-03-26 22:19:23 -0700
committerunknown <sasha@mysql.sashanet.com>2002-03-26 22:19:23 -0700
commit079a551ca735e79f3d7a2ebbecf8be4d4ba7608a (patch)
treeab4d73690dcb8e3ef54e70015f1838cf17a2577a /mysys/my_static.h
parent9c435716a9773f78cd5db0a992bd4b89b83bc25a (diff)
downloadmariadb-git-079a551ca735e79f3d7a2ebbecf8be4d4ba7608a.tar.gz
coverted my_thread_init() /end to use my_malloc()/my_free() to help track
down replication corruption dbug/dbug.c: fixed DBUG_ macros to not crash if my_thread_init() had not been called include/my_sys.h: keep track of shutdown, main, and signal threads for safemalloc mysys/my_static.h: keep track of thread in safemalloc blocks mysys/my_thr_init.c: use my_malloc()/my_free() in my_thread_init() mysys/safemalloc.c: keep track of threads do not fuss if main,signal, or shutdown thread still has allocated blocks when we call TERMINATE() as some blocks are freed later and there is no easy way to make TERMINATE() wait for those threads sql/mysqld.cc: keep track of signal, main, and shutdown threads
Diffstat (limited to 'mysys/my_static.h')
-rw-r--r--mysys/my_static.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysys/my_static.h b/mysys/my_static.h
index 4f944938b8d..ca384009063 100644
--- a/mysys/my_static.h
+++ b/mysys/my_static.h
@@ -38,6 +38,7 @@ struct irem {
my_string _sFileName; /* File in which memory was new'ed */
uint _uLineNum; /* Line number in above file */
uint _uDataSize; /* Size requested */
+ pthread_t thread_id;
long _lSpecialValue; /* Underrun marker value */
};
@@ -56,6 +57,11 @@ extern const char *soundex_map;
extern USED_MEM* my_once_root_block;
extern uint my_once_extra;
+/* these threads are exept from safemalloc leak scrutiny unless
+ PEDANTIC_SAFEMALLOC is defined
+*/
+extern pthread_t signal_thread,kill_thread;
+
#ifndef HAVE_TEMPNAM
extern int _my_tempnam_used;
#endif