malloc source code - Minix
This is a discussion on malloc source code - Minix ; Which is the purpose of running twice the code of malloc.c? I refer to the following line of src/lib/ansi/malloc.c: for (ntries = 0; ntries I suspect it is a hopeless try of a process to allocate more memory from another ...
| | LinkBack | Tools |
|
#1
| |||
| |||
| following line of src/lib/ansi/malloc.c: for (ntries = 0; ntries < 2; ntries++) { I suspect it is a hopeless try of a process to allocate more memory from another process that has just freed some Christos |
|
#2
| |||
| |||
| In article <1134139009.442951@athnrd02>, Christos Karayiannis >Which is the purpose of running twice the code of malloc.c? I refer to the >following line of src/lib/ansi/malloc.c: > >for (ntries = 0; ntries < 2; ntries++) { > >I suspect it is a hopeless try of a process to allocate more memory from >another process that has just freed some Are you sure that all that other code in the loop is actually a nop? -- That was it. Done. The faulty Monk was turned out into the desert where it could believe what it liked, including the idea that it had been hard done by. It was allowed to keep its horse, since horses were so cheap to make. -- Douglas Adams in Dirk Gently's Holistic Detective Agency |
« Previous Thread
|
Next Thread »
| Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tru64 file system source code now open source | unix | VMS | 21 | 07-14-2008 06:07 PM |
| SN#20056 Open Source Community Gets Source Code for Solaris Cluster Core | unix | SUN | 0 | 06-22-2008 04:03 PM |
| SN#17271 Java Platform Source Code Now Released Under GPL License as Open Source | unix | SUN | 0 | 10-06-2007 10:11 AM |
| MALLOCTYPE user: malloc replacement calling default malloc? | unix | Aix | 4 | 10-04-2007 12:58 AM |
| malloc w/ mmap() in multithreaded code | unix | Linux | 7 | 09-30-2007 12:58 PM |
All times are GMT. The time now is 09:38 AM.
