Skip to content

Commit

Permalink
Reserve a few more slots in g_config
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=266110
rdar://119403904

Reviewed by Mark Lam.

Increases the base reserved slots of g_config and increases
the size of the gigacage config.

* Source/bmalloc/bmalloc/GigacageConfig.h:

Canonical link: https://commits.webkit.org/271798@main
  • Loading branch information
ddegazio authored and Mark Lam committed Dec 9, 2023
1 parent 517a1dc commit 1e1cf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/bmalloc/bmalloc/GigacageConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ struct Config {

#if BENABLE(UNIFIED_AND_FREEZABLE_CONFIG_RECORD)

// The first 2 slots are reserved for the use of the ExecutableAllocator.
constexpr size_t startSlotOfGigacageConfig = 2;
// The first 4 slots are reserved for the use of the ExecutableAllocator.
constexpr size_t startSlotOfGigacageConfig = 4;
constexpr size_t startOffsetOfGigacageConfig = startSlotOfGigacageConfig * sizeof(WebConfig::Slot);

constexpr size_t reservedSlotsForGigacageConfig = 12;
constexpr size_t reservedSlotsForGigacageConfig = 16;
constexpr size_t reservedBytesForGigacageConfig = reservedSlotsForGigacageConfig * sizeof(WebConfig::Slot);

constexpr size_t alignmentOfGigacageConfig = std::alignment_of<Gigacage::Config>::value;
Expand Down

0 comments on commit 1e1cf38

Please sign in to comment.