diff options
author | Andreas Kling <kling@serenityos.org> | 2020-11-14 18:27:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-14 22:51:58 +0100 |
commit | 2fceffff6fd243fee4ee53defb752c10baf197dc (patch) | |
tree | b764e4b79e618a143bdf726e8ab633da1b90f5a4 /.gitignore | |
parent | b494cfea3803465d0047edd3c421c00ed9129531 (diff) | |
download | serenity-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions