Re: failmalloc equivalent for MacOS X
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcibAz2OfC4IYQb2Ed2qDwAdT0T19A== Thread-topic: failmalloc equivalent for MacOS X User-agent: Microsoft-Entourage/11.4.0.080122 On 4/10/08 7:54 AM, "David Geldreich" <david.geldreich@free.fr> wrote:
Hello Cem,
Le 10 avr. 08 à 13:43, Army Research Lab a écrit :
I noticed the message below from David, and it occurred to me that this might be something to build into libgmalloc. I looked around on Apple's site for the sources, and then out on the web in general, but I didn't find them; are they Apple proprietary, or am I just blind?
I could release my libfailmalloc ... but even I get my application resist against allocation failure, Apple's frameworks (OpenGL, QuickTime, CoreVideo, ...) are not "memory allocation problem" safe.
I stream video decoded with QuickTime to the GPU and I have crash in QuickTime codec or in OpenGL driver (texture management part)...
So for my application, the only solution is to not come close the 2GB limit (for a 32 bit app). If I detect an allocation failure, I immediately try to free as much memory as possible but it does not prevent crash.
If someone wants to test my libfailmalloc, just ask me for a copy.
Best regards.
I'd love to have a copy! However, I really think that it should also be built into libgmalloc. As you noted, and as mentioned on the failmalloc page, too many people assume that their code will work correctly, 100% of the time. Even Apple is doing it! :) I'd rather test, test, test, and then test some more, so that my users don't get stuck with my bad code. Memory testing should be put into libgmalloc for that reason. So, I'm willing to work on the source for libgmalloc, if it is available for download. Is it? Thanks, Cem Karan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Army Research Lab