Bug 1810343 - skip implementation check of PR_GetPhysicalMemorySize on DragonFly BSD r=stransky

Differential Revision: https://phabricator.services.mozilla.com/D168350
This commit is contained in:
arcade 2023-02-06 15:37:55 +00:00
parent 90213fc7d5
commit 89386c6c26

View File

@ -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;