View | Details | Raw Unified | Return to bug 255561
Collapse All | Expand All

(-)b/www/chromium/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	chromium
3
PORTNAME=	chromium
4
PORTVERSION=	98.0.4758.102
4
PORTVERSION=	98.0.4758.102
5
PORTREVISION=	1
5
CATEGORIES=	www
6
CATEGORIES=	www
6
MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
7
MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
7
		LOCAL/rene/chromium/:fonts
8
		LOCAL/rene/chromium/:fonts
(-)b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator.h (+11 lines)
Added Link Here
1
--- base/allocator/partition_allocator/page_allocator.h.orig	2022-02-23 16:08:07 UTC
2
+++ base/allocator/partition_allocator/page_allocator.h
3
@@ -170,7 +170,7 @@ BASE_EXPORT void DecommitAndZeroSystemPages(void* addr
4
 // Whether decommitted memory is guaranteed to be zeroed when it is
5
 // recommitted. Do not assume that this will not change over time.
6
 constexpr BASE_EXPORT bool DecommittedMemoryIsAlwaysZeroed() {
7
-#if defined(OS_APPLE)
8
+#if defined(OS_APPLE) || defined(OS_BSD)
9
   return false;
10
 #else
11
   return true;
(-)b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h (-1 / +16 lines)
Added Link Here
0
- 
1
--- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig	2022-02-23 16:08:07 UTC
2
+++ base/allocator/partition_allocator/page_allocator_internals_posix.h
3
@@ -339,8 +339,12 @@ bool TryRecommitSystemPagesInternal(
4
 }
5
 
6
 void DiscardSystemPagesInternal(void* address, size_t length) {
7
-#if defined(OS_APPLE)
8
+#if defined(OS_APPLE) || defined(OS_BSD)
9
+#if defined(OS_BSD)
10
+  int ret = madvise(address, length, MADV_FREE);
11
+#else
12
   int ret = madvise(address, length, MADV_FREE_REUSABLE);
13
+#endif
14
   if (ret) {
15
     // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED.
16
     ret = madvise(address, length, MADV_DONTNEED);

Return to bug 255561