⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276298 in webkit


Ignore:
Timestamp:
Apr 20, 2021, 3:25:08 AM (5 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Limit memory allocation size of JSTests/stress/early-return-from-builtin.js
https://bugs.webkit.org/show_bug.cgi?id=224803
<rdar://problem/75597901>

Reviewed by Ryosuke Niwa.

Add limit to JSTests/stress/early-return-from-builtin.js to avoid infinite allocation.

  • stress/early-return-from-builtin.js:

(let.iter.Symbol.iterator):

Location:
trunk/JSTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r276285 r276298  
     12021-04-20  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Limit memory allocation size of JSTests/stress/early-return-from-builtin.js
     4        https://bugs.webkit.org/show_bug.cgi?id=224803
     5        <rdar://problem/75597901>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Add limit to JSTests/stress/early-return-from-builtin.js to avoid infinite allocation.
     10
     11        * stress/early-return-from-builtin.js:
     12        (let.iter.Symbol.iterator):
     13
    1142021-04-19  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/JSTests/stress/early-return-from-builtin.js

    r275232 r276298  
    1 //@ skip if ($architecture != "arm64" and $architecture != "x86-64") or $memoryLimited
    21//@ runDefault("--earlyReturnFromInfiniteLoopsLimit=10", "--returnEarlyFromInfiniteLoopsForFuzzing=1", "--watchdog=1000", "--watchdog-exception-ok")
    32
     
    98
    109
     10let i = 0;
    1111let iter = {
    1212  [Symbol.iterator]() {
    1313    return {
    1414      next() {
    15         return o;
     15        ++i
     16        if (i < 1e6)
     17            return o;
     18        return {
     19            done: true
     20        };
    1621      }
    1722    }
Note: See TracChangeset for help on using the changeset viewer.