mmap in SharedMemory::FindFreeAddressSpace should use MAP_NORESERVE
Categories
(Core :: IPC, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: petr.sumbera, Assigned: petr.sumbera)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0
Steps to reproduce:
The issue is similar to:
https://bugzilla.mozilla.org/show_bug.cgi?id=1527597
Sometimes we see in system logs:
Sep 23 09:48:06 solaris genunix: [ID 531226 kern.warning] WARNING:
anon_resv: process 1461 attempted to allocate 4194304 pages of anon memory
The issue is that:
doesn't use: MAP_NORESERVE
Fix should be to just add MAP_NORESERVE to mmap() call in FindFreeAddressSpace. We don't need to force the system to allocate swap space, because the mapping is temporary. It is destroyed on next line in source code by munmap() call.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Moving this over to the correct component based on Bug 1527597 and setting it up as new. Thank you for the reported issues and for working on patches to fix them!
Updated•3 years ago
|
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/86f46322fd29 SharedMemory::FindFreeAddressSpace should use MAP_NORESERVE r=glandium
Comment 4•3 years ago
|
||
bugherder |
Description
•