summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Heap/Heap.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-28 18:22:54 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-28 20:40:22 +0200
commit8c99968ec1c77fc4e664818688ab85ea3dbfa248 (patch)
treeba6c552cef5f98ed30867c78317d4c6310154331 /Userland/Libraries/LibJS/Heap/Heap.h
parentd927b69082180c03d02bf380cdd0583bb2e63b9c (diff)
downloadserenity-8c99968ec1c77fc4e664818688ab85ea3dbfa248.zip
LibJS: Fix m_allocations_since_last_gc initialization value
Diffstat (limited to 'Userland/Libraries/LibJS/Heap/Heap.h')
-rw-r--r--Userland/Libraries/LibJS/Heap/Heap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Heap.h b/Userland/Libraries/LibJS/Heap/Heap.h
index 8d7d32298f..c36bc34539 100644
--- a/Userland/Libraries/LibJS/Heap/Heap.h
+++ b/Userland/Libraries/LibJS/Heap/Heap.h
@@ -112,7 +112,7 @@ private:
}
size_t m_max_allocations_between_gc { 10000 };
- size_t m_allocations_since_last_gc { false };
+ size_t m_allocations_since_last_gc { 0 };
bool m_should_collect_on_every_allocation { false };