aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-execstack.awk
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2016-02-09 17:18:28 -0500
committerDJ Delorie <dj@delorie.com>2016-02-09 17:18:28 -0500
commit850602a447235f209cb35b6d8e6ae947e10225d1 (patch)
tree924247a1ac1beb8228d35fcf0e18adf089b94e0e /scripts/check-execstack.awk
parentd2bb040b2a2f58b1ef80f01292bd722fce01d36a (diff)
downloadglibc-850602a447235f209cb35b6d8e6ae947e10225d1.tar.xz
glibc-850602a447235f209cb35b6d8e6ae947e10225d1.zip
Initial attempt at a per-thread cache
If a malloc of size MAX_TCACHE_SIZE or smaller is asked for, a thread-local cache is used. An entry in the cache is returned if available, else a chunk of size N*8 is requested from the arena, and broken into 8 (TCACHE_FILL_COUNT+1) N-sized chunks. One chunk is returned and the rest are stored in the cache. free() can also fill the cache, as long as there are fewer than 7 items in the cache, else the chunk is free'd as usual. The cache is per-size so no searching is required.
Diffstat (limited to 'scripts/check-execstack.awk')
0 files changed, 0 insertions, 0 deletions