Browse Source

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.
Andreas Kling 1 week ago
parent
commit
ab5d5d8b50
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Libraries/LibGC/Cell.h

+ 3 - 3
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 };
 };
 
 }