Unreviewed, wrokaround for MACH_VM_MAX_ADDRESS in ARM32_64
authorysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 May 2019 23:43:09 +0000 (23:43 +0000)
committerysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 May 2019 23:43:09 +0000 (23:43 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/WTFAssertions.cpp

index 16d35d1..167c1a1 100644 (file)
@@ -1,5 +1,15 @@
 2019-05-13  Yusuke Suzuki  <ysuzuki@apple.com>
 
+        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:
+
+2019-05-13  Yusuke Suzuki  <ysuzuki@apple.com>
+
         [WTF] Remove Threading workaround for support libraries in Windows
         https://bugs.webkit.org/show_bug.cgi?id=197350
 
index 55f8119..c4a2aa3 100644 (file)
@@ -48,7 +48,7 @@ static_assert(sizeof(RefPtr<DummyStruct>) == sizeof(DummyStruct*), "");
 
 static_assert(sizeof(RefCountedArray<DummyStruct>) == sizeof(void*), "");
 
-#if OS(DARWIN)
+#if OS(DARWIN) && CPU(ADDRESS64)
 static_assert(MACH_VM_MAX_ADDRESS <= ((1ULL << WTF_CPU_EFFECTIVE_ADDRESS_WIDTH) - 1));
 #endif