commit | 96d4120ac08db3f2d566e8e5c3bc134a24aa0afc | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Mon Apr 02 14:50:03 2012 -0700 |
committer | Jason Evans <jasone@canonware.com> | Mon Apr 02 14:50:03 2012 -0700 |
tree | 45d1a7ec5c0a467cd647c248691b703e37e88a36 | |
parent | 80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d [diff] |
Avoid NULL check in free() and malloc_usable_size(). Generalize isalloc() to handle NULL pointers in such a way that the NULL checking overhead is only paid when introspecting huge allocations (or NULL). This allows free() and malloc_usable_size() to no longer check for NULL. Submitted by Igor Bukanov and Mike Hommey.