forked from mirrors/gecko-dev
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
1 changed files with 2 additions and 0 deletions
|
|
@ -1622,7 +1622,9 @@ void SurfaceCache::Initialize() {
|
||||||
// Compute the size of the surface cache.
|
// Compute the size of the surface cache.
|
||||||
uint64_t memorySize = PR_GetPhysicalMemorySize();
|
uint64_t memorySize = PR_GetPhysicalMemorySize();
|
||||||
if (memorySize == 0) {
|
if (memorySize == 0) {
|
||||||
|
#if !defined(__DragonFly__)
|
||||||
MOZ_ASSERT_UNREACHABLE("PR_GetPhysicalMemorySize not implemented here");
|
MOZ_ASSERT_UNREACHABLE("PR_GetPhysicalMemorySize not implemented here");
|
||||||
|
#endif
|
||||||
memorySize = 256 * 1024 * 1024; // Fall back to 256MB.
|
memorySize = 256 * 1024 * 1024; // Fall back to 256MB.
|
||||||
}
|
}
|
||||||
uint64_t proposedSize = memorySize / surfaceCacheSizeFactor;
|
uint64_t proposedSize = memorySize / surfaceCacheSizeFactor;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue