Changeset 243624 in webkit
- Timestamp:
- Mar 28, 2019, 2:45:53 PM (7 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wasm/lowExecutableMemory/imports-oom.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r243596 r243624 1 2019-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 1 19 2019-03-27 Saam Barati <sbarati@apple.com> 2 20 -
trunk/JSTests/wasm/lowExecutableMemory/imports-oom.js
r218868 r243624 4 4 const verbose = false; 5 5 const numFunctions = 2; 6 const maxParams = 32;6 const maxParams = 8; 7 7 8 8 // This test starts running with a few bytes of executable memory available. Try
Note:
See TracChangeset
for help on using the changeset viewer.