[Webkit-unassigned] [Bug 40565] [WebKitSite] Improve assertion macro documentation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 14 10:47:39 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40565
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #58637|review?, commit-queue? |review+, commit-queue+
Flag| |
--- Comment #2 from Darin Adler <darin at apple.com> 2010-06-14 10:47:38 PST ---
(From update of attachment 58637)
These changes look good.
I think that it’s overstating the case to say that out of memory errors are not recoverable. Maybe there’s a more nuanced way to talk about this. Because of virtual memory systems we program assuming we will not run out of memory for small allocation, and we don't wish to rewrite all the code to handle out-of-memory errors. In those cases we want to terminate the program if we can’t get the memory. But we do have functions that return 0 if there is not sufficient memory. We tend to use those for larger allocations that might fail in practice even if the program has ample space to continue.
The topic is generally subtle and just stating that memory errors are unrecoverable is imprecise.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list