Bug 176211

Summary: Large virtual memory region allocation requires MMAP_NORESERVE in Linux
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ggaren: review+

Description Yusuke Suzuki 2017-08-31 22:36:29 PDT
Large virtual memory region allocation requires MMAP_NORESERVE in Linux
Comment 1 Yusuke Suzuki 2017-08-31 22:59:30 PDT
Created attachment 319579 [details]
Patch
Comment 2 Geoffrey Garen 2017-09-01 11:16:58 PDT
Comment on attachment 319579 [details]
Patch

I have a slight preference for defining BMALLOC_MMAP_FLAGS at the top of the file like we have BMALLOC_VM_TAG. It's nice to factor platform logic out of the core logic of the function. I find #ifdef'd code hard to read. 

Another option would be to define BMALLOC_NORESERVE at the top of the file, and make it something innocuous on Darwin like 0.
Comment 3 Yusuke Suzuki 2017-09-03 03:22:59 PDT
(In reply to Geoffrey Garen from comment #2)
> Comment on attachment 319579 [details]
> Patch
> 
> I have a slight preference for defining BMALLOC_MMAP_FLAGS at the top of the
> file like we have BMALLOC_VM_TAG. It's nice to factor platform logic out of
> the core logic of the function. I find #ifdef'd code hard to read. 
> 
> Another option would be to define BMALLOC_NORESERVE at the top of the file,
> and make it something innocuous on Darwin like 0.

BMALLOC_NORESERVE sounds very nice. I'll apply this change :)
Comment 4 Yusuke Suzuki 2017-09-03 03:31:34 PDT
Committed r221548: <http://trac.webkit.org/changeset/221548>
Comment 5 Radar WebKit Bug Importer 2017-09-27 12:52:26 PDT
<rdar://problem/34694184>