From c9ba2bd014be95a7128fbba7b3b7522851673c67 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 25 Feb 2013 17:14:17 +0100 Subject: [PATCH] fix 64k page issue on ppc/ppc64 --- qtwebkit-ppc.patch | 35 ++++++++++++++++++++++++++--------- qtwebkit.spec | 5 ++++- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/qtwebkit-ppc.patch b/qtwebkit-ppc.patch index b184d86..1a46c51 100644 --- a/qtwebkit-ppc.patch +++ b/qtwebkit-ppc.patch @@ -1,9 +1,26 @@ -diff -up qtwebkit-2.2.2-source/Source/common.pri.me qtwebkit-2.2.2-source/Source/common.pri ---- qtwebkit-2.2.2-source/Source/common.pri.me 2013-01-15 17:42:21.363617854 +0100 -+++ qtwebkit-2.2.2-source/Source/common.pri 2013-01-15 17:43:48.633859421 +0100 -@@ -13,3 +13,5 @@ contains(JAVASCRIPTCORE_JIT,no): DEFINES - # We use this flag on production branches - # See https://bugs.webkit.org/show_bug.cgi?id=60824 - CONFIG += production -+ -+DEFINES+=USE_SYSTEM_MALLOC=1 +diff -up webkit-qtwebkit-23/Source/cmake/WebKitFeatures.cmake.me webkit-qtwebkit-23/Source/cmake/WebKitFeatures.cmake +--- webkit-qtwebkit-23/Source/cmake/WebKitFeatures.cmake.me 2013-02-25 15:53:12.278297141 +0100 ++++ webkit-qtwebkit-23/Source/cmake/WebKitFeatures.cmake 2013-02-25 15:53:42.134167593 +0100 +@@ -125,7 +125,7 @@ MACRO (WEBKIT_OPTION_BEGIN) + WEBKIT_OPTION_DEFINE(ENABLE_WORKERS "Toggle Web Workers support" OFF) + WEBKIT_OPTION_DEFINE(ENABLE_XHR_TIMEOUT "Toggle XHR timeout support" OFF) + WEBKIT_OPTION_DEFINE(ENABLE_XSLT "Toggle XSLT support" ON) +- WEBKIT_OPTION_DEFINE(USE_SYSTEM_MALLOC "Toggle system allocator instead of TCmalloc" OFF) ++ WEBKIT_OPTION_DEFINE(USE_SYSTEM_MALLOC "Toggle system allocator instead of TCmalloc" ON) + WEBKIT_OPTION_DEFINE(WTF_USE_TILED_BACKING_STORE "Toggle Tiled Backing Store support" OFF) + WEBKIT_OPTION_DEFINE(WTF_USE_WTFURL "Toogle the use of WTFURL for URL parsing" OFF) + ENDMACRO () +diff -up webkit-qtwebkit-23/Source/WTF/wtf/PageAllocationAligned.cpp.me webkit-qtwebkit-23/Source/WTF/wtf/PageAllocationAligned.cpp +--- webkit-qtwebkit-23/Source/WTF/wtf/PageAllocationAligned.cpp.me 2013-02-25 15:54:06.974227858 +0100 ++++ webkit-qtwebkit-23/Source/WTF/wtf/PageAllocationAligned.cpp 2013-02-25 15:55:02.355132792 +0100 +@@ -50,7 +50,9 @@ PageAllocationAligned PageAllocationAlig + vm_map(current_task(), &address, size, alignmentMask, flags, MEMORY_OBJECT_NULL, 0, FALSE, protection, PROT_READ | PROT_WRITE | PROT_EXEC, VM_INHERIT_DEFAULT); + return PageAllocationAligned(reinterpret_cast(address), size); + #else +- size_t alignmentDelta = alignment - pageSize(); ++ size_t pagesize = pageSize(); ++ if (alignment < pagesize) alignment = pagesize; ++ size_t alignmentDelta = alignment - pagesize; + + // Resererve with suffcient additional VM to correctly align. + size_t reservationSize = size + alignmentDelta; diff --git a/qtwebkit.spec b/qtwebkit.spec index 4781157..93f64f1 100644 --- a/qtwebkit.spec +++ b/qtwebkit.spec @@ -1,7 +1,7 @@ Name: qtwebkit Version: 2.3 -Release: 0.1.beta2%{?dist} +Release: 0.2.beta2%{?dist} Summary: Qt WebKit bindings Group: System Environment/Libraries License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -158,6 +158,9 @@ rm -rf %{buildroot} %changelog +* Mon Feb 25 2013 Than Ngo - 2.3-0.2.beta2 +- fix 64k page issue on ppc/ppc64 + * Thu Feb 21 2013 Rex Dieter 2.3-0.1.beta2 - qtwebkit-2.3-beta2