|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
+ * Copyright (c) 2020-2024, Andreas Kling <andreas@ladybird.org>
|
|
|
* Copyright (c) 2020-2023, the SerenityOS developers.
|
|
|
*
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
@@ -33,7 +33,7 @@ class HeapBlockBase {
|
|
|
AK_MAKE_NONCOPYABLE(HeapBlockBase);
|
|
|
|
|
|
public:
|
|
|
- static constexpr auto block_size = 4 * KiB;
|
|
|
+ static size_t block_size;
|
|
|
static HeapBlockBase* from_cell(Cell const* cell)
|
|
|
{
|
|
|
return reinterpret_cast<HeapBlockBase*>(bit_cast<FlatPtr>(cell) & ~(HeapBlockBase::block_size - 1));
|