From 2c0e153396c7d6f4fad9fecaf0520e7b0c147ab6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 16 Oct 2020 08:59:51 +0200 Subject: [PATCH] LibJS: Don't bother deferring GC during ensure_property_table() This is not actually necessary, since no GC allocations are made during this process. If we ever make property tables into heap cells, we'd have to rethink this. --- Libraries/LibJS/Runtime/Shape.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibJS/Runtime/Shape.cpp b/Libraries/LibJS/Runtime/Shape.cpp index 4fd26ed631..5e018465f3 100644 --- a/Libraries/LibJS/Runtime/Shape.cpp +++ b/Libraries/LibJS/Runtime/Shape.cpp @@ -151,8 +151,6 @@ void Shape::ensure_property_table() const return; m_property_table = make>(); - DeferGC defer(heap()); - u32 next_offset = 0; Vector transition_chain;