From ab5d5d8b50f5f5e8923b6b00cc51765fa3721cae Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 2 Apr 2025 12:09:49 +0200 Subject: [PATCH] LibGC: Avoid excessive bitfield use in GC::Cell We didn't actually save any space by making the Cell flags bitfields. In fact, it just forced us to do bit twiddling when accessing them. --- Libraries/LibGC/Cell.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibGC/Cell.h b/Libraries/LibGC/Cell.h index 14c64cde808..60f72f1e74a 100644 --- a/Libraries/LibGC/Cell.h +++ b/Libraries/LibGC/Cell.h @@ -187,9 +187,9 @@ protected: void set_overrides_must_survive_garbage_collection(bool b) { m_overrides_must_survive_garbage_collection = b; } private: - bool m_mark : 1 { false }; - bool m_overrides_must_survive_garbage_collection : 1 { false }; - State m_state : 1 { State::Live }; + bool m_mark { false }; + bool m_overrides_must_survive_garbage_collection { false }; + State m_state { State::Live }; }; }