177 Commits (1bd8c9e70feebc0a2ef89b1686d9249d0d06e3d4)

Author SHA1 Message Date
  tedu 1bd8c9e70f Integrate two patches originally from Daniel Micay. 9 years ago
  guenther ec1a04d68c For now, permit overriding of the malloc family, to make emacs happy 9 years ago
  guenther c8272cfe98 Wrap <stdlib.h> so that calls go direct and the symbols not in the 9 years ago
  tedu b4484c676a improve realloc. when expanding a region, actually use the free page cache 10 years ago
  deraadt 75d428b273 Move to the <limits.h> universe. 10 years ago
  tedu 06084f37f2 rename kern enter/exit macros to malloc enter/leave to better reflect 10 years ago
  tedu 69d8bb8294 a small tweak to improve malloc in multithreaded programs. we don't need 10 years ago
  tedu 705f1bf46e reduce obvious dependency on global g_pool by moving to local aliases 10 years ago
  deraadt df559b50e4 extra evil spaces snuck in over the last while 10 years ago
  otto 08ecfcb5b8 Move to a smaller rbytes buffer and skip a random part. Not to 10 years ago
  otto 7626939dd1 move random bytes buffer to be part of mmaped pages; ok tedu@ 11 years ago
  otto 547175abed move all stats collecting under MALLOC_STATS; ok krw@ 11 years ago
  otto 17d6cb272d fix MALLOC_STATS (not compiled in by default); ok tedu@ 11 years ago
  tedu 118f2caf23 factor out a bit of the chunk index code and use it to make sure that a 11 years ago
  tedu 508b771a99 change to having four freelists per size, to reduce another source of 11 years ago
  otto d7088c5a04 fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default 11 years ago
  deraadt a14ce349c7 move reallocarray() to a seperate file so that -portable applications 11 years ago
  halex 3a717658e6 comment style fix 11 years ago
  tedu 74c23bc915 nibbles aren't enough random, use bytes. does a better job of picking 11 years ago
  tedu c0d30f0eb0 remove Z option and default to something halfway to J. 11 years ago
  espie 41f1e88953 explain a bit more what's going on for stupid me. 11 years ago
  otto 8a0e8854ef Better, cleaner hash function that computes the same on be and le archs. 11 years ago
  tedu 07d1cf3ec2 change mallocarray to reallocarray. useful in a few more situations. 11 years ago
  deraadt 00d28c4faf Introducing: void *mallocarray(size_t nmemb, size_t size); 11 years ago
  otto d487e76537 print pid in error messages; ok reyk@ 11 years ago
  schwarze 93c318776d Update Copyright notice; ok otto@ beck@ deraadt@. 11 years ago
  beck 241e064849 Poul-Henning Kamp informed me he is allright with this licensing change. 11 years ago
  deraadt a728e0155c avoid arithetic on void * 11 years ago
  otto 09a0be7c23 Fix bug in random offset introduced in rev 1.143; random range was 12 years ago
  djm 83081452a3 Add a new malloc option 'U' => "Free unmap" that does the guarding/ 12 years ago
  pirofti 336a8ca4d4 Fix precedence bug (& has lower precedence than !=). 12 years ago
  deraadt 99a773bc80 use PAGE_SHIFT instead of PGSHIFT, in preperation for future 12 years ago
  tedu d2b5b55b87 after a talk with ariane, use MAP_FIXED for mquery to avoid the cost of 12 years ago
  tedu d8de214e9d two changes which should improve realloc. first, fix zapcacheregion to 13 years ago
  tedu bd225324bc two small fixes to free page cache. first, we need two nibbles of random 13 years ago
  matthew 5294f450b0 Support larger-than-page-alignment requests in posix_memalign() by 13 years ago
  otto c5909da5cf - Test for the retrieved page address not being NULL. This turns free((void*)1) 13 years ago
  otto 7f73468da7 Make struct chunk_info a variable sized struct, wasting less 13 years ago
  otto d6855c0895 on malloc flag S, set cache size to 0; will catch even more 13 years ago
  tedu d874c625f1 as man page states, lower case undoes upper case. add support for little s, 14 years ago
  otto be0afe8548 save errno dance in wrterror() and malloc_dump(); prompted by and ok deraadt@ 14 years ago
  otto 535636b5df introduce symbolic constant for initial number of regions 14 years ago
  otto 01b4849121 zap regions_bits and rework MALLOC_MAXSHIFT a bit; ok djm@ 14 years ago
  otto 6ebcec8c72 Avoid fp computations for stats, this make calling malloc_dump() safe in more 14 years ago
  otto 86e4380bcc fix comment, the bitmap is an array of u_short now 14 years ago
  otto fc442e2a61 Introduce leak detection code for MALLOC_STATS 14 years ago
  otto e726d97c87 Move MALLOC_STATS code to bottom of file, so the real stuff is more at the top. 14 years ago
  otto 0ec9d0391a Up until now, malloc scanned the bits of the chunk bitmap from 14 years ago
  otto fe5a32734e Now that we use an array of u_short for the chunk bitmap change a few 14 years ago
  otto dcc6e6f049 More efficient scanning for free chunks while not losing any randomization; 14 years ago