summaryrefslogtreecommitdiff
path: root/Ports/build_all.sh
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-11-14 18:27:08 +0100
committerAndreas Kling <kling@serenityos.org>2020-11-14 22:51:58 +0100
commit2fceffff6fd243fee4ee53defb752c10baf197dc (patch)
treeb764e4b79e618a143bdf726e8ab633da1b90f5a4 /Ports/build_all.sh
parentb494cfea3803465d0047edd3c421c00ed9129531 (diff)
downloadserenity-2fceffff6fd243fee4ee53defb752c10baf197dc.zip
UserspaceEmulator: Track malloc ChunkedBlocks for faster auditing
Instead of doing an O(n) scan over all the mallocations whenever we're doing a read/write audit, UE now keeps track of ChunkedBlocks and their chunks. Both the block lookup and the chunk lookup is O(1). We know what ChunkedBlocks look like via mallocdefs.h from LibC. Note that the old linear scan is still in use for big mallocations, but the vast majority of mallocations are chunked, so this helps a lot. This makes malloc auditing significantly faster! :^)
Diffstat (limited to 'Ports/build_all.sh')
0 files changed, 0 insertions, 0 deletions