Bug 173734

Summary: ARM64: doubled executable memory limit from 32MiB to 64MiB
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: JF Bastien <jfbastien>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, fpizlo, jfbastien, keith_miller, mark.lam, msaboff, oliver, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description JF Bastien 2017-06-22 14:04:25 PDT
Some WebAssembly programs stress the amount of memory we have available, especially when we consider tiering (BBQ never dies, and is bigger that OMG). Tiering to OMG just piles on more memory, and we're also competing with JavaScript.

Separately, I'll try to find places where we allocate too much, and I'll make sure OMG executable allocation failure fails gracefully.
Comment 1 Radar WebKit Bug Importer 2017-06-22 14:05:30 PDT
<rdar://problem/32932407>
Comment 2 JF Bastien 2017-06-22 14:10:14 PDT
Created attachment 313659 [details]
patch
Comment 3 WebKit Commit Bot 2017-06-22 15:12:29 PDT
Comment on attachment 313659 [details]
patch

Clearing flags on attachment: 313659

Committed r218723: <http://trac.webkit.org/changeset/218723>
Comment 4 WebKit Commit Bot 2017-06-22 15:12:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Saam Barati 2017-06-22 15:38:45 PDT
Let's also make it so that we throw an OOM instead of crashing when running out of X memory.
Comment 6 JF Bastien 2017-06-22 15:43:55 PDT
(In reply to Saam Barati from comment #5)
> Let's also make it so that we throw an OOM instead of crashing when running
> out of X memory.

Oh right I don’t know why I thought we’d want otherwise! I’ll do that after my investigation.
Comment 7 JF Bastien 2017-06-25 21:59:33 PDT
(In reply to JF Bastien from comment #6)
> (In reply to Saam Barati from comment #5)
> > Let's also make it so that we throw an OOM instead of crashing when running
> > out of X memory.
> 
> Oh right I don’t know why I thought we’d want otherwise! I’ll do that after
> my investigation.

That's happening here: https://bugs.webkit.org/show_bug.cgi?id=171537