tsutsui
db898c555a
unsigned -> unsigned int
2007-12-02 04:59:24 +00:00
isaki
1c038e6834
style, indent, and ANSI-fy.
2007-11-24 13:20:53 +00:00
christos
6645a4f37b
free -> dealloc
2006-01-25 18:27:23 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
christos
049fd5eb10
help with casts, and lint hints.
2004-06-30 13:58:16 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
dsl
2d1837c8fc
KNR, removing ugly 'unsigned' variables.
...
Probably should be size_t, but now matched prototype.
(mainly agreed with christos - he wanted size_t....)
2003-02-01 14:57:02 +00:00
augustss
1279e67b6e
Kill some more register declarations.
2000-03-30 12:19:46 +00:00
cgd
bb7cdd7c0b
don't bother initializing 'freelist' -- it can be bss
1999-05-28 19:31:51 +00:00
simonb
fa38a5236c
The "found" label is not used if ALLOC_FIRST_FIT is defined.
1999-04-11 04:02:37 +00:00
simonb
e46b652af6
bestsize is unused if ALLOC_FIRST_FIT is defined.
1999-04-01 02:41:08 +00:00
drochner
9f58a1a9bb
fix printf() format warnings in debug output
1997-09-17 16:24:00 +00:00
drochner
a8ac47dd1b
Fix syntax error which appeared #ifdef DEBUG ("end[]").
...
Simplify the heap location stuff.
1997-07-04 18:47:25 +00:00
drochner
a1d00666ac
Allow to define the location of the heap at runtime #if HEAP_VARIABLE.
...
That helps to test libsa code in user space.
1997-06-26 19:17:40 +00:00
drochner
8347a7476f
Bring prototypes into scope.
1997-06-13 14:28:52 +00:00
leo
2242daf790
Initialize 'bestf' to make this compile again with -Wall.
1997-02-16 13:02:59 +00:00
thorpej
63930d7db4
Add some debugging code to free(), to catch frees before the
...
start of the heap and beyond the end of the heap (if a heap limit
is defined).
1997-02-04 18:36:33 +00:00
cgd
ea27b7aa31
Add a whole bunch of features, from Matthias Drochner:
...
best-fit, rather than first-fit, algorithm.
ability to handle free()s with zero size (needed for gzip read
support).
ability to start the heap someplace else (defined by HEAP_START).
ability to limit growth of the heap (via HEAP_LIMIT).
debugging sanity checks (ifdef DEBUG).
allocation tracing support, to help debugging (ifdef ALLOC_TRACE).
and from me:
ability to pick a (smaller) first-fit algorithm (via ALLOC_FIRST_FIT).
lots of comments.
If heap limits and all of the debugging features are disabled (the default),
and ALLOC_FIRST_FIT is defined (not the default), compiled with -O on the
alpha the new version is the same (object) size as the old version.
1997-01-22 01:18:23 +00:00
cgd
f496a53cbf
make sure new allocations are aligned.
1996-09-26 23:15:00 +00:00
cgd
6668f51c96
new RCS ID format.
1994-10-26 05:44:32 +00:00
cgd
20b21822a4
use ALIGN, rather than hard-coded numbers
1994-07-27 07:39:17 +00:00
brezak
36b52a824e
CMU/4.4 stand-alone library
1994-01-26 02:03:32 +00:00