diff options
author | Andreas Kling <kling@serenityos.org> | 2022-01-15 01:47:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-15 19:51:15 +0100 |
commit | 4fa3c1bf2dd7232afcacbcd57d2fbce448f002d7 (patch) | |
tree | 11dbf6249c343f0022d4f29c21db5a668b575daa /Kernel/Memory/AddressSpace.h | |
parent | c55dfabdd5d926ade12a23157240fffd74ed557e (diff) | |
download | serenity-4fa3c1bf2dd7232afcacbcd57d2fbce448f002d7.zip |
Kernel: Remove old "region lookup cache" optimization
This optimization was added when region lookup was O(n), before we had
the O(log n) RedBlackTree. Let's remove it to simplify the code, as we
have no evidence that it remains valuable.
Diffstat (limited to 'Kernel/Memory/AddressSpace.h')
-rw-r--r-- | Kernel/Memory/AddressSpace.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/Memory/AddressSpace.h b/Kernel/Memory/AddressSpace.h index 5a96e0abb0..9a5405d0ae 100644 --- a/Kernel/Memory/AddressSpace.h +++ b/Kernel/Memory/AddressSpace.h @@ -74,12 +74,6 @@ private: RedBlackTree<FlatPtr, NonnullOwnPtr<Region>> m_regions; - struct RegionLookupCache { - Optional<VirtualRange> range; - WeakPtr<Region> region; - }; - RegionLookupCache m_region_lookup_cache; - bool m_enforces_syscall_regions { false }; }; |