19 Aug
2008
19 Aug
'08
11:45 a.m.
On Aug 19, 2008, at 2:54 PM, Mikael Tennhammar wrote:
But have anyone tried this before? Knows anything about it? Or is there a policy how to handle the case where a allocation is failing?
Starting with <http://trac.webkit.org/changeset/35691> (last week), fastMalloc() aborts on failed allocations, so I guess that this is what the policy is. In a few cases where the caller knows how to handle out of memory conditions (e.g. by raising a JavaScript exception), a version of fastMalloc() that doesn't crash is called. Talking about ports that cannot use fastMalloc go, some work towards making it possible to use custom allocators is tracked by <https://bugs.webkit.org/show_bug.cgi?id=20422
.
- WBR, Alexey Proskuryakov