summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorAnders Fredlund <anders.fredlund@sonyericsson.com>2011-05-20 08:12:37 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-05-20 08:12:37 +0200
commitdd16182b4b3f107d5c26015622c1cb8c06619ad7 (patch)
treef63aecec0f28085d3226e0b08e07934be9e12d74 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parenta7a9dddb5dfe783d65fec4d3b0dee9f734345a29 (diff)
Remove expired dns cache entries before removing oldest
A suggestion how to make a smarter delete function when the cache is full. First look through the entire cache and remove all entries which have expired. If none use the old solution and just remove the last entry in the MRU list. Change-Id: I5f997ab35290a55dc6e1ddf37d725759edf83d36
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions