mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 09:54:42 +00:00
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:
parent
90213fc7d5
commit
89386c6c26
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user