Summary: | All users of ArrayBuffer should agree on the same max size | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||||||
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ews-watchlist, fpizlo, guijemont, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Filip Pizlo
2018-11-16 14:15:46 PST
Created attachment 355119 [details]
the patch
Created attachment 355121 [details]
the patch
Fixed some tests.
Comment on attachment 355121 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=355121&action=review r=me > Source/JavaScriptCore/runtime/ArrayBuffer.cpp:119 > + RELEASE_ASSERT(m_sizeInBytes <= MAX_ARRAY_BUFFER_SIZE); nit: This can be a debug ASSERT because we already have a size check above to ensure this. Created attachment 355143 [details]
the patch
It turns out that we have to allow large maximum and then fail when you try to grow. Otherwise we fail some spec test.
Skipped the new tests in https://trac.webkit.org/r238373 for memory limited devices, as they use 800M+ memory (which I assume is expected for these tests). |