diff options
| author | Grissiom <[email protected]> | 2013-07-15 11:29:58 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-07-15 11:47:55 +0800 |
| commit | c3a39444daaa72c3c9b3e0001d0550cf56cca74d (patch) | |
| tree | 9b38d2dbc7ebe4f7f0f524b4f87cecb4b62416c3 /libcpu | |
| parent | f0f0e3dd9e88478c1bde461ff16dabe8240fb670 (diff) | |
memheap: dont alloc/memcpy when there is next node is enough for realloc
When realloc a bigger space and the next node is free and big enough, we
should directly relocate the next node instead of doing alloc/memcpy.
The new method not only faster in this cases, it would avoid memory
fragment as well.
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions
