summaryrefslogtreecommitdiff
path: root/mysys/my_static.c
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-06-12 22:39:45 +0300
committermonty@narttu.mysql.fi <>2003-06-12 22:39:45 +0300
commitecdb1c768ca856c8eef5389f02a2879c17688b21 (patch)
tree0be61ddbb8a76073cf672a53d8a43bbb00c751eb /mysys/my_static.c
parenta79bdf2ee75fa48b34cd4736b49ea91197afaeae (diff)
downloadmariadb-git-ecdb1c768ca856c8eef5389f02a2879c17688b21.tar.gz
Changed safemalloc structure to not have to be 8 byte aligned. (Portability problem)
Diffstat (limited to 'mysys/my_static.c')
-rw-r--r--mysys/my_static.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mysys/my_static.c b/mysys/my_static.c
index bbf7582a454..b24ef28b7b1 100644
--- a/mysys/my_static.c
+++ b/mysys/my_static.c
@@ -69,14 +69,13 @@ uint sf_malloc_prehunc=0, /* If you have problem with core- */
sf_malloc_endhunc=0, /* dump when malloc-message.... */
/* set theese to 64 or 128 */
sf_malloc_quick=0; /* set if no calls to sanity */
-long lCurMemory = 0L; /* Current memory usage */
-long lMaxMemory = 0L; /* Maximum memory usage */
-uint cNewCount = 0; /* Number of times NEW() was called */
+ulong sf_malloc_cur_memory= 0L; /* Current memory usage */
+ulong sf_malloc_max_memory= 0L; /* Maximum memory usage */
+uint sf_malloc_count= 0; /* Number of times NEW() was called */
byte *sf_min_adress= (byte*) ~(unsigned long) 0L,
*sf_max_adress= (byte*) 0L;
-
-/* Root of the linked list of remembers */
-struct remember *pRememberRoot = NULL;
+/* Root of the linked list of struct st_irem */
+struct st_irem *sf_malloc_root = NULL;
/* from my_alarm */
int volatile my_have_got_alarm=0; /* declare variable to reset */