RESOLVED FIXED 212437
Limit memory used by wasm/references/multitable.js on memory limited devices
https://bugs.webkit.org/show_bug.cgi?id=212437
Summary Limit memory used by wasm/references/multitable.js on memory limited devices
Saam Barati
Reported 2020-05-27 15:03:03 PDT
...
Attachments
patch (6.72 KB, patch)
2020-05-27 16:11 PDT, Saam Barati
keith_miller: review+
patch for landing (6.27 KB, patch)
2020-05-27 17:00 PDT, Saam Barati
no flags
patch for landing (6.27 KB, patch)
2020-05-27 17:04 PDT, Saam Barati
no flags
Saam Barati
Comment 1 2020-05-27 15:03:29 PDT
Currently uses 600MB and jetsams iOS tests
Saam Barati
Comment 2 2020-05-27 16:11:13 PDT
Keith Miller
Comment 3 2020-05-27 16:13:38 PDT
Comment on attachment 400400 [details] patch r=me
Mark Lam
Comment 4 2020-05-27 16:18:46 PDT
Comment on attachment 400400 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=400400&action=review > JSTests/wasm/references/multitable.js:428 > + .End().WebAssembly().get())), Error, "Table count of 1000000 is too big, maximum 1000000"); Parameterize on largeNumber too instead of hardcoding 1000000 in the message? > Source/JavaScriptCore/jsc.cpp:2497 > +EncodedJSValue JSC_HOST_CALL functionIsMemoryLimited(JSGlobalObject*, CallFrame*) > +{ > +#if PLATFORM(IOS) || PLATFORM(TVOS) || PLATFORM(WATCHOS) > + return JSValue::encode(jsBoolean(true)); > +#else > + return JSValue::encode(jsBoolean(false)); > +#endif > +} Put this in $vm because it may be useful for LayoutTests too?
Saam Barati
Comment 5 2020-05-27 16:41:33 PDT
Comment on attachment 400400 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=400400&action=review >> JSTests/wasm/references/multitable.js:428 >> + .End().WebAssembly().get())), Error, "Table count of 1000000 is too big, maximum 1000000"); > > Parameterize on largeNumber too instead of hardcoding 1000000 in the message? this one is needed since it's an actual test that 1000000 exceeds the limit >> Source/JavaScriptCore/jsc.cpp:2497 >> +} > > Put this in $vm because it may be useful for LayoutTests too? Yeah I can do that
Saam Barati
Comment 6 2020-05-27 17:00:21 PDT
Created attachment 400404 [details] patch for landing
Saam Barati
Comment 7 2020-05-27 17:04:00 PDT
Created attachment 400405 [details] patch for landing
EWS
Comment 8 2020-05-27 17:46:33 PDT
Committed r262227: <https://trac.webkit.org/changeset/262227> All reviewed patches have been landed. Closing bug and clearing flags on attachment 400405 [details].
Radar WebKit Bug Importer
Comment 9 2020-05-27 17:47:19 PDT
Note You need to log in before you can comment on or make changes to this bug.