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

Changeset 243624 in webkit


Ignore:
Timestamp:
Mar 28, 2019, 2:45:53 PM (7 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] imports-oom.js intermittently fails
https://bugs.webkit.org/show_bug.cgi?id=196373

Reviewed by Saam Barati.

imports-oom.js ensures that a wasm module compilation / instantiation throws an OOM error instead of crashing when compiling / instantiating their entry points
with extremely low executable memory amount. And this test expects we at least once successfully compile, instantiate, and execute a wasm module to test that
wasm implementation is always throwing an OOM error. However, maybe due to wasm changes, the amount of executable memory consumed by wasm compilation is changed,
and now we may encounter an OOM error at the first compilation. Since imports-oom.js randomize the amount of executable memory used by the generated wasm module,
imports-oom.js intermittently fails when it first generates large wasm module which cannot be compiled.

This patch reduces the maxParams from 32 to 8 to reduce the size of randomly generated wasm module. Since we repeatedly generate wasm modules, this test soon encounter
an expected OOM error. But this avoids the situation that we get an OOM error when we compile a first wasm module.

  • wasm/lowExecutableMemory/imports-oom.js:
Location:
trunk/JSTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r243596 r243624  
     12019-03-28  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] imports-oom.js intermittently fails
     4        https://bugs.webkit.org/show_bug.cgi?id=196373
     5
     6        Reviewed by Saam Barati.
     7
     8        imports-oom.js ensures that a wasm module compilation / instantiation throws an OOM error instead of crashing when compiling / instantiating their entry points
     9        with extremely low executable memory amount. And this test expects we at least once successfully compile, instantiate, and execute a wasm module to test that
     10        wasm implementation is always throwing an OOM error. However, maybe due to wasm changes, the amount of executable memory consumed by wasm compilation is changed,
     11        and now we may encounter an OOM error at the first compilation. Since imports-oom.js randomize the amount of executable memory used by the generated wasm module,
     12        imports-oom.js intermittently fails when it first generates large wasm module which cannot be compiled.
     13
     14        This patch reduces the maxParams from 32 to 8 to reduce the size of randomly generated wasm module. Since we repeatedly generate wasm modules, this test soon encounter
     15        an expected OOM error. But this avoids the situation that we get an OOM error when we compile a first wasm module.
     16
     17        * wasm/lowExecutableMemory/imports-oom.js:
     18
    1192019-03-27  Saam Barati  <sbarati@apple.com>
    220
  • trunk/JSTests/wasm/lowExecutableMemory/imports-oom.js

    r218868 r243624  
    44const verbose = false;
    55const numFunctions = 2;
    6 const maxParams = 32;
     6const maxParams = 8;
    77
    88// This test starts running with a few bytes of executable memory available. Try
Note: See TracChangeset for help on using the changeset viewer.