Mark Andrews
cdce8b88c6
update copyright notice
2007-02-14 00:27:27 +00:00
Mark Andrews
96ea716328
2134. [func] Additional statistics support. [RT #16666 ]
2007-02-13 02:49:08 +00:00
Mark Andrews
f2b2de10ce
0 => 0U
2006-12-08 05:09:16 +00:00
Mark Andrews
e60f01cdd2
2116. [bug] 'rndc reload' could cause the cache to continually
...
be cleaned. [RT #16401 ]
2006-12-07 06:27:34 +00:00
Mark Andrews
acb4f52369
update copyright notice
2006-01-04 23:50:24 +00:00
Mark Andrews
e9733bc599
1949. [func] Addition memory leakage checks. [RT #15544 ]
2006-01-04 03:16:47 +00:00
Mark Andrews
4ba6b6a7ef
silence compiler warnings
2005-08-23 04:05:50 +00:00
Mark Andrews
18d0b5e54b
1900. [port] freebsd: pthread_mutex_init can fail if it runs out
...
of memory. [RT #14995 ]
2005-07-12 01:00:20 +00:00
Mark Andrews
016c0a82f1
1888. [func] "USE INTERNAL MALLOC" is now runtime selectable.
...
[RT #14892 ]
2005-06-17 02:22:45 +00:00
Mark Andrews
d4d68515d2
1885. [func] Additional memory debugging support to track size
...
and mctx arguements. [RT #14814 ]
2005-06-10 07:00:20 +00:00
Tatuya JINMEI 神明達哉
5597be9bb8
1813. [func] Restructured the data locking framework using
...
architecture dependent atomic operations (when
available), improving response performance on
multi-processor machines significantly.
x86, x86_64, alpha, and sparc64 are currently
supported.
(RT #13505 )
2005-06-04 05:32:50 +00:00
Rob Austein
ab023a6556
1851. [doc] Doxygen comment markup. [RT #11398 ]
2005-04-27 04:57:32 +00:00
Mark Andrews
b7b6b01a0d
update copyright
2005-03-16 00:55:19 +00:00
Mark Andrews
5218822573
1826. [bug] Missing DESTROYLOCK() in isc_mem_createx() on out
...
of memory error. [RT #13537 ]
2005-03-15 01:11:01 +00:00
Mark Andrews
1676408640
pullup silence compiler fixes
...
ifconfig.sh for Solaris 9
README updates
2004-03-18 02:58:08 +00:00
Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
5eb91bd90e
silence compiler warnings (HPUX/11i)
2003-07-25 00:01:16 +00:00
Mark Andrews
acc8b7ac3d
1299. [port] Darwin uses (unsigned long) for size_t. [RT #2590 ]
2002-05-23 04:32:30 +00:00
Mark Andrews
72b6ec6e5d
lock mctx for DELETE_TRACE call in isc__mempool_put()
2002-03-19 02:40:16 +00:00
Mark Andrews
a7038d1a05
copyrights
2002-02-20 03:35:59 +00:00
Brian Wellington
fca9cc33ad
1189. [bug] On some systems, malloc(0) returns NULL, which
...
could cause the caller to report an out of memory
error. [RT #2398 ]
2002-01-22 15:40:24 +00:00
Brian Wellington
e128be1387
track the size of memory blocks when debugging is enabled.
2001-12-05 19:13:26 +00:00
Andreas Gustafsson
91cd0f93ad
sizeof style
2001-11-27 01:56:32 +00:00
Andreas Gustafsson
f1b6872550
Do not put a space before ';' when terminating a statement or in a 'for' statement.
2001-11-27 00:56:32 +00:00
Andreas Gustafsson
059a29a179
when using the system malloc, isc__mempool_get(), isc__mempool_put(),
...
and isc_mempool_destroy() failed to update memory statistics. [RT #1915 ]
2001-10-19 01:29:09 +00:00
Andreas Gustafsson
eb7f938194
style
2001-10-19 00:38:18 +00:00
Andreas Gustafsson
dfafc36515
style
2001-10-19 00:17:17 +00:00
Andreas Gustafsson
e69b9ffb0f
1048. [bug] Servers built with -DISC_MEM_USE_INTERNAL_MALLOC=1
...
didn't work.
2001-10-12 00:35:11 +00:00
Andreas Gustafsson
f8dbd659d0
When ISC_MEM_TRACKLINES=1, don't calle {add,delete}_trace_entry()
...
for every alloc/free if neither ISC_MEM_DEBUGTRACE nor
ISC_MEM_DEBUGRECORD is turned on. This removes my
last objection to setting ISC_MEM_TRACKLINES=1 by default.
2001-09-06 23:03:01 +00:00
Mark Andrews
7f006841fc
Assertion failure when ISC_MEM_DEBUGRECORD set.
2001-09-05 06:26:07 +00:00
Andreas Gustafsson
9ec3c7b42d
mem.c did not compile when ISC_MEM_TRACKLINES was not defined
2001-08-30 20:23:44 +00:00
Mark Andrews
90989375ca
Improve time taken to free memory when ISC_MEM_DEBUGRECORD is set.
2001-08-30 05:40:04 +00:00
Mark Andrews
15903c9f3a
memory allocation failure would cause INSIST(ctx->stats[i].gets == 0) failure.
...
use consistant arguement name for MEMRECORD
2001-07-17 10:02:46 +00:00
Danny Mayer
c4958494a9
Updates to support LIBISC_EXTERNAL_DATA and misc. cleanup
2001-07-12 05:58:28 +00:00
Mark Andrews
c18d42b96b
use MEM_RECORD rather than debugging > 1
2001-06-28 01:57:34 +00:00
Mark Andrews
594a685c8d
Add ISC_MEM_DEBUGGING to set default compile time flags.
...
Remember ISC_MEM_DEBUGRECORD state when isc_mem_create() is called as
it is dangerous to change this afterwards.
2001-06-28 01:51:20 +00:00
Mark Andrews
950d71eee3
allow maximum inuse memory to be tracked.
2001-06-27 23:29:29 +00:00
Andreas Gustafsson
509ef0c871
Keep track of the number of times the system malloc() has
...
failed, to help determine whether a server crash resulted
from a bug in the handling of an out-of-memory condition
or not.
2001-06-11 20:27:16 +00:00
David Lawrence
65640f401a
Removed the requirement for isc_mem_setwater() that when the callback function
...
is not null then hi_water must exceed lo_water and both must be > 0.
Now requires hi_water >= lo_water, and they can both be 0. Not allowing
them to be equal was just an unnecessary restriction, and letting them be 0
is useful for the case where the context has had non-zero values set, went
over hi_water and called the callback, and then wanted to remove limits
(perhaps because of a reconfiguration). This allows the callback to
be signaled as ISC_MEM_LOWATER on the next isc_mem_put(), which the caller
might need to terminate any outstanding action that was triggered by
the hi_water.
2001-06-05 22:14:20 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Andreas Gustafsson
b7d448de55
no need to specifically ask people to mail bind9-bugs about mempool leaks
2001-02-20 22:03:36 +00:00
Andreas Gustafsson
449f4411c9
NO NEED TO SHOUT
2001-02-14 23:05:14 +00:00
Brian Wellington
47d78f67cb
Give more information when isc_mempool_destroy() dies with an assertion
...
failure, in the hope that we'll be able to fix the bug one day.
2001-02-13 20:29:27 +00:00
Mark Andrews
ba6e506ed2
#if not #ifdef ISC_MEM_TRACKLINES
2001-02-13 13:20:37 +00:00
Mark Andrews
b499a7c511
Print out the active memory prior to INSIST/REQUIRE failures.
2001-02-13 06:21:32 +00:00
Brian Wellington
9f708f9014
isc_mem_stats() should print memory statistics even when there are no
...
allocated blocks at the time it's called.
2001-02-13 01:07:54 +00:00
Andreas Gustafsson
50179a15d1
UNUSED()
2001-02-09 19:08:11 +00:00
Andreas Gustafsson
dd0ef1a9d3
removed the unused and undocumented functions
...
isc_mem_preallocate(), isc_mem_valid(), isc_mem_setsplit(), and
isc_mem_restore()
2001-02-09 19:05:23 +00:00
Andreas Gustafsson
c674a8d5e7
documented the isc_mem_* interface
2001-02-09 18:51:20 +00:00
Brian Wellington
770d3b36da
ctx->checkfree was only being initialized if USE_INTERNAL_MALLOC was on.
2001-02-05 23:48:25 +00:00