mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibJS: Align HeapBlock cell storage to __BIGGEST_ALIGNMENT__
alignas(Cell) is just the alignment requirement for the base class (which resolves to 8-bytes). This does not necessarily hold for all subclasses.
This commit is contained in:
parent
d4d92184b3
commit
130ec7e5b4
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/MacDue
Commit: 130ec7e5b4
Pull-request: https://github.com/SerenityOS/serenity/pull/19412
Reviewed-by: https://github.com/Hendiadyoin1 ✅
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ private:
|
|||
size_t m_cell_size { 0 };
|
||||
size_t m_next_lazy_freelist_index { 0 };
|
||||
GCPtr<FreelistEntry> m_freelist;
|
||||
alignas(Cell) u8 m_storage[];
|
||||
alignas(__BIGGEST_ALIGNMENT__) u8 m_storage[];
|
||||
|
||||
public:
|
||||
static constexpr size_t min_possible_cell_size = sizeof(FreelistEntry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue