Changeset 245264 in webkit


Ignore:
Timestamp:
May 13, 2019 4:43:09 PM (5 years ago)
Author:
ysuzuki@apple.com
Message:

Unreviewed, wrokaround for MACH_VM_MAX_ADDRESS in ARM32_64
https://bugs.webkit.org/show_bug.cgi?id=197730

Interestingly, MACH_VM_MAX_ADDRESS is larger than 32bit in ARM32_64, I think this is a bug.
But for now, we workaround for this case by using CPU(ADDRESS64).

  • wtf/WTFAssertions.cpp:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245260 r245264  
     12019-05-13  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Unreviewed, wrokaround for MACH_VM_MAX_ADDRESS in ARM32_64
     4        https://bugs.webkit.org/show_bug.cgi?id=197730
     5
     6        Interestingly, MACH_VM_MAX_ADDRESS is larger than 32bit in ARM32_64, I think this is a bug.
     7        But for now, we workaround for this case by using `CPU(ADDRESS64)`.
     8
     9        * wtf/WTFAssertions.cpp:
     10
    1112019-05-13  Yusuke Suzuki  <ysuzuki@apple.com>
    212
  • trunk/Source/WTF/wtf/WTFAssertions.cpp

    r245254 r245264  
    4949static_assert(sizeof(RefCountedArray<DummyStruct>) == sizeof(void*), "");
    5050
    51 #if OS(DARWIN)
     51#if OS(DARWIN) && CPU(ADDRESS64)
    5252static_assert(MACH_VM_MAX_ADDRESS <= ((1ULL << WTF_CPU_EFFECTIVE_ADDRESS_WIDTH) - 1));
    5353#endif
Note: See TracChangeset for help on using the changeset viewer.