2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00

294 Commits

Author SHA1 Message Date
David Lawrence
947bd6c648 <isc/mutex.h> does not need <isc/lang.h> or <isc/result.h>. 2000-04-26 01:29:27 +00:00
Bob Halley
fd3271152c Add isc_mem_attach(), isc_mem_detach(), isc_mem_preallocate(), and
isc_mem_setsplit().  Rename isc_mem_destroy_check() to
isc_mem_setdestroycheck().  Add isc_mem_inuse().
2000-04-12 01:24:17 +00:00
Andreas Gustafsson
e6e674f6a5 no need to include <isc/ondestroy.h> from <isc/mem.h> 2000-04-04 20:06:29 +00:00
Bob Halley
2190526544 Allow zero length allocations/deallocations. 2000-03-16 22:39:46 +00:00
David Lawrence
5f89718b7d Debugging versions of isc_mem_allocate, isc_mem_free and isc_mem_strdup.
This allows memory allocation/freeing to be tracked with ISC_MEM_DEBUG
as with isc_mem_get/isc_mem_put.   (To get the debugging information
before, mem.c itself needed to be recompiled with ISC_MEM_DEBUG on.)
2000-02-26 19:59:30 +00:00
James Brister
80d19f3523 Support ondestroy notification for isc_mem_t. 2000-02-10 16:10:41 +00:00
Bob Halley
ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Andreas Gustafsson
f316fb9a63 needless use of void pointers made debugging hard 2000-02-01 00:18:35 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Mark Andrews
f859f35d85 Reverse previous commit. 1999-10-29 07:18:53 +00:00
Mark Andrews
fe37278859 in6_addr.s6_addr is *always* an array. 1999-10-29 06:36:05 +00:00
Bob Halley
b622f2b07b ISC_MEM_FILL was corrupting memory when the block being allocated or freed
was bigger than the memory context's max size.

Force alignment to 8 bytes, since some otherwise 32-bit platforms have a 64
bit "long long".
1999-10-27 20:55:21 +00:00
Michael Graff
78b2f25c9a add isc_mem_setname() 1999-10-19 01:22:39 +00:00
James Brister
0ef59eaa9f Let client turn off the INSIST that all memory is freed (parser needs this
due to yacc).
1999-10-02 21:20:03 +00:00
Michael Graff
50dfb7ee4a implement mempool locking 1999-09-15 17:47:08 +00:00
James Brister
fe4cf362bb Fixed bad use of return(). 1999-09-09 22:32:33 +00:00
Bob Halley
ac70da9a27 allow malloc() and free() to be replaced 1999-09-09 19:32:03 +00:00
Bob Halley
453f3213e9 undo ISC_MEM_RECORD 1999-09-03 17:45:17 +00:00
Mark Andrews
feb72cfbe7 Record where memory requests and releases were made.
Double isc_mem_put()'s well now cause an INSIST failures.
	These are on by default during development but can be turned
	off by "#define ISC_MEM_RECORD 0" or equivalent.
1999-09-03 13:19:17 +00:00
Mark Andrews
07bd65db25 Catch certain reference after free and failure to initalise bugs
earlier in development rather than later.
1999-06-29 14:28:37 +00:00
Michael Graff
608b132b4e remove unnessary casts 1999-06-08 21:55:07 +00:00
Michael Graff
f28a94af21 comment, clean up a bit 1999-06-08 02:50:51 +00:00
Michael Graff
eb7ef395d2 implement memory pools 1999-06-08 02:38:30 +00:00
Andreas Gustafsson
acfa3ff9c8 simplified quantize(); fill memory with nonzero values if ISC_MEM_FILL==1 1999-05-26 06:10:09 +00:00
Bob Halley
116208651c include big mallocs in quota 1999-04-27 23:42:50 +00:00
Bob Halley
16baa70f9d basic quota support; fix bugs in more_basic_blocks() 1999-04-27 23:20:10 +00:00
Bob Halley
c72a4d674d cleanups 1999-01-14 19:52:52 +00:00
Bob Halley
dad8d67ed0 add isc_mem_strdup 1998-12-30 20:17:02 +00:00
Bob Halley
4cafb28abc change memctx to mem; cleanups; fix debug trace problem 1998-12-18 19:14:09 +00:00
Bob Halley
3740b569ae the great type change 1998-12-13 23:45:21 +00:00
Bob Halley
1cef22510e convert to util.h; add magic 1998-12-13 02:04:56 +00:00
Bob Halley
1633838b82 update copyrights 1998-12-12 20:48:14 +00:00
Bob Halley
d25afd60ee include config.h 1998-12-12 19:25:20 +00:00
Bob Halley
2983bfafb7 get rid of rcsid 1998-12-11 20:47:28 +00:00
Bob Halley
6792dd6d22 conforming changes for new pool 1998-12-11 20:38:46 +00:00
Bob Halley
da4242bf62 replace unexpect.[ch] and fatal.[ch] with error.[ch] 1998-12-04 20:00:26 +00:00
Bob Halley
b10b0bdf3f assume multithreaded unless ISC_SINGLETHREADED is defined 1998-11-11 19:02:24 +00:00
Bob Halley
bf6d2e3912 more renaming 1998-10-22 01:33:20 +00:00
Bob Halley
de9282a1ea rename memcluster 1998-10-21 22:01:08 +00:00
Bob Halley
b3b43bcc22 remove range code; implement mem_context_destroy more completely 1998-09-16 21:38:08 +00:00
Bob Halley
50f339a799 update 1998-08-18 19:28:30 +00:00
Bob Halley
e7b7e6e746 checkpoint 1998-08-18 00:47:55 +00:00
Bob Halley
0dbe3d9c27 checkpoint 1998-08-18 00:29:57 +00:00
Bob Halley
7ee52cc7d1 base 1998-08-17 22:05:58 +00:00