pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

webkit-gtk: madvise(2) on {Free,Net,Open}BSD supports MADV_FREE and MADV_DONTNEED



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Oct 8 10:20:18 2018 +0200
Changeset:	94bc3ba0edaa39e54158abebe3eeb011fceca89d

Modified Files:
	webkit-gtk/TODO
	webkit-gtk/distinfo
	webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h

Log Message:
webkit-gtk: madvise(2) on {Free,Net,Open}BSD supports MADV_FREE and MADV_DONTNEED

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=94bc3ba0edaa39e54158abebe3eeb011fceca89d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 webkit-gtk/TODO                                    |  3 ---
 webkit-gtk/distinfo                                |  2 +-
 webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h | 15 +++++++++++++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diffs:
diff --git a/webkit-gtk/TODO b/webkit-gtk/TODO
index f474991ff4..3d9b42ecc0 100644
--- a/webkit-gtk/TODO
+++ b/webkit-gtk/TODO
@@ -16,9 +16,6 @@
   leads to the same results.
   (The webkit-gtk browsers probably don't need any NOT_PAX_MPROTECT_SAFE
   because they use WebKitWebProcess)
-- For OS(NETBSD) in Source/WTF/wtf/Platform.h we can probably define:
-   #define HAVE_MADV_FREE 1
-   #define HAVE_MADV_DONTNEED 1
 - Review JIT support for NetBSD:
    * patches/patch-Source_JavaScriptCore_runtime_MachineContext.h
    * patches/patch-Source_WTF_wtf_Platform.h
diff --git a/webkit-gtk/distinfo b/webkit-gtk/distinfo
index 2e0d9a9a0b..79d131739d 100644
--- a/webkit-gtk/distinfo
+++ b/webkit-gtk/distinfo
@@ -11,7 +11,7 @@ SHA1 (patch-Source_JavaScriptCore_heap_MarkedSpace.cpp) = e6a23d5ef22bddd0a9606f
 SHA1 (patch-Source_JavaScriptCore_jit_ExecutableAllocator.cpp) = 36d29a5db03c2413ae93224ac391f3ff248983e8
 SHA1 (patch-Source_JavaScriptCore_runtime_MachineContext.h) = 07d505040a175c89c1e8e84b431c333c96293312
 SHA1 (patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h) = f1eee7f9d3012edee1915234c837cff820f97092
-SHA1 (patch-Source_WTF_wtf_Platform.h) = e419f26fbd01d315ea3033d628105c6e30cc594b
+SHA1 (patch-Source_WTF_wtf_Platform.h) = 5cf36cf7cca8a39d75a788ca988758927b421d95
 SHA1 (patch-Source_WTF_wtf_StackBounds.cpp) = 22a71daac8443f079ad8bcc7285cfd7319c972b3
 SHA1 (patch-Source_WebCore_inspector_InspectorFrontendHost.cpp) = daf6351a1a0b5a49592a2bb6db0d54620c7b09e3
 SHA1 (patch-Source_WebCore_platform_FileSystem.cpp) = adef1a42c4e210f0a3dcb82807e2d2039684a0ec
diff --git a/webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h b/webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h
index bef4ac533a..fe9b0580c1 100644
--- a/webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h
+++ b/webkit-gtk/patches/patch-Source_WTF_wtf_Platform.h
@@ -2,6 +2,8 @@ $NetBSD$
 
 - Add OS(SOLARIS) definition and add them to Unix systems.
 - Avoid flock() on SunOS, not supported on older platforms.
+- madvise(2) on {Free,Net,OpenBSD} support both MADV_DONTNEED and
+  MADV_FREE.
 - Add support for NetBSD.
 
 --- Source/WTF/wtf/Platform.h.orig	2018-09-21 19:59:47.000000000 +0000
@@ -37,7 +39,16 @@ $NetBSD$
  
  #if PLATFORM(GTK)
  #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_36
-@@ -697,7 +705,7 @@
+@@ -693,11 +701,16 @@
+ 
+ #endif /* OS(DARWIN) */
+ 
++#if OS(FREEBSD) || OS(NETBSD) || OS(OPENBSD)
++#define HAVE_MADV_FREE 1
++#define HAVE_MADV_DONTNEED 1
++#endif
++
+ #if PLATFORM(COCOA)
  #define HAVE_CFNETWORK_STORAGE_PARTITIONING 1
  #endif
  
@@ -46,7 +57,7 @@ $NetBSD$
  #define HAVE_MACHINE_CONTEXT 1
  #endif
  
-@@ -786,11 +794,11 @@
+@@ -786,11 +799,11 @@
  
  #if !defined(ENABLE_DFG_JIT) && ENABLE(JIT)
  /* Enable the DFG JIT on X86 and X86_64. */


Home | Main Index | Thread Index | Old Index