11 Commits

Author SHA1 Message Date
ceriel
068ffbc391 make realloc behave like most Unix realloc versions when handed a
null pointer
1989-03-29 12:58:18 +00:00
ceriel
73ac1d53ec Made easier to use other compiler 1989-02-16 16:33:29 +00:00
ceriel
b3702e14a3 Try to allocate to the next power of 2, instead of just aligning
with GRABSIZE; This way, malloc(1000000) followed by free() followed by
another malloc(1000000) will result in the same block being allocated,
because first_present will now find it
1989-02-10 09:18:19 +00:00
ceriel
472bc43825 try another SBRK 1988-07-11 14:06:11 +00:00
ceriel
7b873fea90 improved; delayed frees did not work anyway 1988-07-05 11:50:11 +00:00
ceriel
734e402508 better check if a block was already freed 1988-01-14 11:35:07 +00:00
ceriel
1f2fa05492 first free-ing and then reallocing did not work properly.
Now, free does nothing, except remembering that a block was freed.
malloc, realloc and free check for this.
1987-08-14 11:52:17 +00:00
ceriel
b0df114710 Initial revision 1987-04-13 10:32:47 +00:00
ceriel
7e9733350e Added Rcs Id 1987-03-10 09:24:02 +00:00
ceriel
ea8e8f95b4 Added copyright notice 1987-03-09 15:15:03 +00:00
ceriel
12869eaa07 Initial revision 1987-01-06 11:25:09 +00:00