diff options
author | unknown <sasha@mysql.sashanet.com> | 2000-11-04 21:00:41 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2000-11-04 21:00:41 -0700 |
commit | e07aa7950e26cfe322973e1690448046ec012b9f (patch) | |
tree | 7b7dc6b62d42b88422bc7b1400ded6c92f4b4c96 /mysys | |
parent | ccc273c6a651a8cc422aa8b79d99767251de4446 (diff) | |
download | mariadb-git-e07aa7950e26cfe322973e1690448046ec012b9f.tar.gz |
BitKeeper/triggers/post-commit
send the diffs
Docs/manual.texi
updated change history
include/my_sys.h
Moved safemalloc_mem_limit here
mysys/safemalloc.c
fixed up safemalloc_mem_limit
sql/mysqld.cc
moved safemalloc_mem_limit declaration to my_sys.h
BitKeeper/triggers/post-commit:
send the diffs
Docs/manual.texi:
updated change history
include/my_sys.h:
Moved safemalloc_mem_limit here
mysys/safemalloc.c:
fixed up safemalloc_mem_limit
sql/mysqld.cc:
moved safemalloc_mem_limit declaration to my_sys.h
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/safemalloc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mysys/safemalloc.c b/mysys/safemalloc.c index 589ed1c457b..34fcfff756c 100644 --- a/mysys/safemalloc.c +++ b/mysys/safemalloc.c @@ -73,9 +73,7 @@ #include "my_static.h" #include "mysys_err.h" -#ifndef DBUG_OFF -ulonglong safemalloc_mem_limit = 0; -#endif +ulonglong safemalloc_mem_limit = ~(ulonglong)0; #define pNext tInt._pNext #define pPrev tInt._pPrev @@ -133,12 +131,9 @@ gptr _mymalloc (uint uSize, const char *sFile, uint uLine, myf MyFlags) if (!sf_malloc_quick) (void) _sanity (sFile, uLine); -#ifndef DBUG_OFF - if(safemalloc_mem_limit && - uSize + lCurMemory > safemalloc_mem_limit) + if(uSize + lCurMemory > safemalloc_mem_limit) pTmp = 0; else -#endif /* Allocate the physical memory */ pTmp = (struct remember *) malloc ( sizeof (struct irem) /* remember data */ |