mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
d933968108
WebRender makes extensive use of shared memory buffers, particularly for images decoded in the content process. These images can be arbitrarily large, and there being insufficient memory for an allocation must be handled gracefully. On Linux, we will currently crash with a SIGBUS signal during image decoding instead of just displaying the broken image tag. This is because the pages backing the shared memory are only allocated when we write to them. This blocks shipping WebRender on Linux. This patch uses posix_fallocate to force the reservation of the pages, and allows failing gracefully if they are unavailable. Differential Revision: https://phabricator.services.mozilla.com/D80650 |
||
---|---|---|
.. | ||
broker | ||
glue | ||
gtest | ||
interfaces | ||
launch | ||
reporter | ||
LinuxSched.h | ||
moz.build | ||
Sandbox.cpp | ||
Sandbox.h | ||
SandboxBrokerClient.cpp | ||
SandboxBrokerClient.h | ||
SandboxChrootProto.h | ||
SandboxFilter.cpp | ||
SandboxFilter.h | ||
SandboxFilterUtil.cpp | ||
SandboxFilterUtil.h | ||
SandboxHooks.cpp | ||
SandboxInfo.cpp | ||
SandboxInfo.h | ||
SandboxInternal.h | ||
SandboxLogging.cpp | ||
SandboxLogging.h | ||
SandboxOpenedFiles.cpp | ||
SandboxOpenedFiles.h | ||
SandboxReporterClient.cpp | ||
SandboxReporterClient.h |