Bug 209974 - [JSC] TypedArray#subarray should throw OOM error gracefully
Summary: [JSC] TypedArray#subarray should throw OOM error gracefully
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-03 10:28 PDT by Yusuke Suzuki
Modified: 2020-04-14 11:27 PDT (History)
15 users (show)

See Also:


Attachments
Patch (3.72 KB, patch)
2020-04-03 10:31 PDT, Yusuke Suzuki
mark.lam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2020-04-03 10:28:52 PDT
[JSC] TypedArray#subarray should throw OOM error gracefully
Comment 1 Yusuke Suzuki 2020-04-03 10:31:02 PDT
Created attachment 395392 [details]
Patch
Comment 2 Yusuke Suzuki 2020-04-03 10:31:05 PDT
<rdar://problem/61253901>
Comment 3 Mark Lam 2020-04-03 10:36:36 PDT
Comment on attachment 395392 [details]
Patch

r=me
Comment 4 Yusuke Suzuki 2020-04-03 11:29:12 PDT
Committed r259478: <https://trac.webkit.org/changeset/259478>
Comment 6 Mark Lam 2020-04-04 09:16:38 PDT
I've skipped the test for armv7 and mips in r259530: <http://trac.webkit.org/r259530>, and filed https://bugs.webkit.org/show_bug.cgi?id=210003 for the root cause to be investigated.
Comment 7 Keith Miller 2020-04-04 09:47:03 PDT
(In reply to Mark Lam from comment #6)
> I've skipped the test for armv7 and mips in r259530:
> <http://trac.webkit.org/r259530>, and filed
> https://bugs.webkit.org/show_bug.cgi?id=210003 for the root cause to be
> investigated.

I think you'll just want to skip if $memoryLimited (might be a different name). These failures sometimes cause problems on iOS testing too.
Comment 8 Yusuke Suzuki 2020-04-04 10:42:38 PDT
(In reply to Keith Miller from comment #7)
> (In reply to Mark Lam from comment #6)
> > I've skipped the test for armv7 and mips in r259530:
> > <http://trac.webkit.org/r259530>, and filed
> > https://bugs.webkit.org/show_bug.cgi?id=210003 for the root cause to be
> > investigated.
> 
> I think you'll just want to skip if $memoryLimited (might be a different
> name). These failures sometimes cause problems on iOS testing too.

Yes, looks like this is timeout because these bots are slow.
Comment 9 Yusuke Suzuki 2020-04-04 11:56:27 PDT
Committed r259535: <https://trac.webkit.org/changeset/259535>