home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
001-099
/
ff066.lzh
/
MallocTest
/
POSTER
< prev
Wrap
Text File
|
1987-04-12
|
1KB
|
31 lines
Article 574 of net.sources:
Path: mcdsun!noao!hao!nbires!seismo!husc6!necntc!encore!vaxine!nw
From: nw@vaxine.UUCP (Neil Webber)
Newsgroups: net.sources
Subject: malloc/free test program
Message-ID: <417@vaxine.UUCP>
Date: 16 Feb 87 20:49:49 GMT
Organization: Automatix, Inc., Billerica, MA
Lines: 460
A while back I asked the net if anyone had a malloc/free test program that
would allocate and free randomly sized pieces of memory with random lifetimes
(and fill them with patterns that would be checked for corruption). I got
a number of useful suggestions (best one: use the "diff" program as a
malloc test ... it's brutal). Eventually, I wound up writing my own
test program, which actually helped me find a bug.
On the assumption that it might be useful to someone else, here it is.
Please note:
- No documentation (read the code to find out what it does).
- Could be extended in zillions of ways to make it more useful.
- No makefile, just compile "cc mtest.c"
A "shar" archive follows.
Neil Webber Automatix Inc. (or current resident) Billerica MA
{decvax,ihnp4,allegra}!encore!vaxine!nw
---------------------- cut here -------------------------------------