Changeset 249856 in webkit


Ignore:
Timestamp:
Sep 13, 2019, 3:06:51 PM (5 years ago)
Author:
mark.lam@apple.com
Message:

We should never fail to allocate VA for the Gigacage.
https://bugs.webkit.org/show_bug.cgi?id=201774
<rdar://problem/55352042>

Reviewed by Yusuke Suzuki.

Unfortunately, this is still not true for OS(LINUX). So, I'll leave the
GIGACAGE_ALLOCATION_CAN_FAIL code in place but disable it for everything else.

  • bmalloc/Gigacage.h:
Location:
trunk/Source/bmalloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r249670 r249856  
     12019-09-13  Mark Lam  <mark.lam@apple.com>
     2
     3        We should never fail to allocate VA for the Gigacage.
     4        https://bugs.webkit.org/show_bug.cgi?id=201774
     5        <rdar://problem/55352042>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        Unfortunately, this is still not true for OS(LINUX).  So, I'll leave the
     10        GIGACAGE_ALLOCATION_CAN_FAIL code in place but disable it for everything else.
     11
     12        * bmalloc/Gigacage.h:
     13
    1142019-09-09  Michael Saboff  <msaboff@apple.com>
    215
  • trunk/Source/bmalloc/bmalloc/Gigacage.h

    r249613 r249856  
    7272constexpr size_t maximumCageSizeReductionForSlide = bmalloc::Sizes::GB / 4;
    7373constexpr size_t configSizeToProtect = 16 * bmalloc::Sizes::kB;
    74 #define GIGACAGE_ALLOCATION_CAN_FAIL 1
    7574#else
    7675constexpr size_t primitiveGigacageSize = 32 * bmalloc::Sizes::GB;
     
    7877constexpr size_t maximumCageSizeReductionForSlide = 4 * bmalloc::Sizes::GB;
    7978constexpr size_t configSizeToProtect = 4 * bmalloc::Sizes::kB;
    80 #define GIGACAGE_ALLOCATION_CAN_FAIL 0
    8179#endif
    8280
     
    8482// So we specify GIGACAGE_ALLOCATION_CAN_FAIL = 1.
    8583#if BOS(LINUX)
    86 #undef GIGACAGE_ALLOCATION_CAN_FAIL
    8784#define GIGACAGE_ALLOCATION_CAN_FAIL 1
     85#else
     86#define GIGACAGE_ALLOCATION_CAN_FAIL 0
    8887#endif
    8988
Note: See TracChangeset for help on using the changeset viewer.