summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-12 22:19:14 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-15 11:43:45 +0100
commitfea181bde35b115de33adb5f80c3f6abe46cec72 (patch)
tree26cbbadb8be7e37fc955bd3f527da7d77bd88f32 /Userland/Libraries
parent1a173be29d6ff8e9774b4a375b8de54d6849969c (diff)
downloadserenity-fea181bde35b115de33adb5f80c3f6abe46cec72.zip
LibRegex: Reduce RegexMatcher's BumpAllocator chunk size
Before the BumpAllocator OOB access issue was understood and fixed, the chunk size was increased to 8MiB as a workaround in commit: 27d555bab0d84913599cea3c4a6b0a0ed2a15b66. The issue is now resolved by: 0f1425c895ace40fbb10d68a55eeb3a6354479d3. We can reduce the chunk size to 2MiB, which has the added benefit of reducing runtime of the RegExp.prototype.exec test.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibRegex/RegexMatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibRegex/RegexMatcher.cpp b/Userland/Libraries/LibRegex/RegexMatcher.cpp
index 6b6ce96c71..c312ca3c81 100644
--- a/Userland/Libraries/LibRegex/RegexMatcher.cpp
+++ b/Userland/Libraries/LibRegex/RegexMatcher.cpp
@@ -391,7 +391,7 @@ private:
Node* previous { nullptr };
};
- UniformBumpAllocator<Node, true, 8 * MiB> m_allocator;
+ UniformBumpAllocator<Node, true, 2 * MiB> m_allocator;
Node* m_first { nullptr };
Node* m_last { nullptr };
};