From 89386c6c26ca117d0ae0bcc73f8340e985ece7d2 Mon Sep 17 00:00:00 2001 From: arcade Date: Mon, 6 Feb 2023 15:37:55 +0000 Subject: [PATCH] Bug 1810343 - skip implementation check of PR_GetPhysicalMemorySize on DragonFly BSD r=stransky Differential Revision: https://phabricator.services.mozilla.com/D168350 --- image/SurfaceCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image/SurfaceCache.cpp b/image/SurfaceCache.cpp index 26cb5c637742..22f787d3351d 100644 --- a/image/SurfaceCache.cpp +++ b/image/SurfaceCache.cpp @@ -1622,7 +1622,9 @@ void SurfaceCache::Initialize() { // Compute the size of the surface cache. uint64_t memorySize = PR_GetPhysicalMemorySize(); if (memorySize == 0) { +#if !defined(__DragonFly__) MOZ_ASSERT_UNREACHABLE("PR_GetPhysicalMemorySize not implemented here"); +#endif memorySize = 256 * 1024 * 1024; // Fall back to 256MB. } uint64_t proposedSize = memorySize / surfaceCacheSizeFactor;