Ticket #62027: patch-qtwebkit-FastMalloc.diff

File patch-qtwebkit-FastMalloc.diff, 802 bytes (added by jhoyt4, 4 years ago)

fixed - requires MachineStackMarker.cpp.diff and Platform.h.diff patches

  • Source/WTF/wtf/FastMalloc.cpp

    old new  
    9393#include <malloc/malloc.h>
    9494#endif
    9595
     96#if OS(DARWIN) && CPU(ARM64)
     97#include <arm/param.h>
     98#endif
     99
    96100#ifndef NO_TCMALLOC_SAMPLES
    97101#ifdef WTF_CHANGES
    98102#define NO_TCMALLOC_SAMPLES
     
    628632// sense.  In particular, if kMaxSize increases, you may have to
    629633// increase kNumClasses as well.
    630634#if OS(DARWIN)
    631 #    define K_PAGE_SHIFT PAGE_SHIFT
     635#    if CPU(X86_64)
     636#        define K_PAGE_SHIFT I386_PGSHIFT
     637#    elif CPU(ARM64)
     638#        define K_PAGE_SHIFT PGSHIFT
     639#    else
     640#        define K_PAGE_SHIFT PAGE_SHIFT
     641#    endif
    632642#    if (K_PAGE_SHIFT == 12)
    633643#        define K_NUM_CLASSES 68
    634644#    elif (K_PAGE_SHIFT == 14)