- Timestamp:
- Apr 22, 2009, 5:32:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dnmalloc.c
r187 r228 92 92 Fail on: OpenBSD/pthread (in _thread_machdep_save_float_state), 93 93 might be related to OpenBSD pthread internals (??). 94 Non-treaded version (#undef USE_MALLOC_LOC )94 Non-treaded version (#undef USE_MALLOC_LOCK) 95 95 works on OpenBSD. 96 96 … … 101 101 Minor cleanups 102 102 Fix: eliminate prototypes for memset, memcpy (they're in string.h) 103 Fix: one more malloc_consolidate segfault 103 104 104 105 There may be some bugs left in this version. please use with caution. … … 4406 4407 /* consolidate forward */ 4407 4408 if (!inuse(nextchunk)) { 4408 unlink(nextchunk, bck, fwd); 4409 size += nextsize; 4410 set_head(p, size | PREV_INUSE); 4411 hashtable_skiprm(p, nextchunk); 4412 freecilst_add (nextchunk); 4409 /* if mmap is used instead of sbrk, we may have a 4410 * chunk with !nextchunk->fd && !nextchunk->bk 4411 */ 4412 if (nextchunk->fd && nextchunk->fd) 4413 { 4414 unlink(nextchunk, bck, fwd); 4415 size += nextsize; 4416 set_head(p, size | PREV_INUSE); 4417 hashtable_skiprm(p, nextchunk); 4418 freecilst_add (nextchunk); 4419 } 4413 4420 } 4414 4421
Note:
See TracChangeset
for help on using the changeset viewer.