https://bugs.kde.org/show_bug.cgi?id=432510

Philippe Waroquiers <philippe.waroqui...@skynet.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philippe.waroquiers@skynet.
                   |                            |be

--- Comment #4 from Philippe Waroquiers <philippe.waroqui...@skynet.be> ---
To have a flexible way to specify when/where a memory allocation should fail,
we might use a something that re-uses (part of) the suppression infrastructure:

The user would give a file with 'suppression-like' entries, but instead of
suppressing errors, these entries would put a limit (in nr of allocated blocks
and/or nr of allocated bytes) after which a malloc would return NULL.

That should be relatively cpu-cheap to implement, as the matching between
the alloc stacktrace and the 'heap-limit supp entries' has to be done
only the first time a new stacktrace is stored in the list of stack traces.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to