Wasm baseline: signal stack frame overflow in a less mysterious way
Categories
(Core :: JavaScript: WebAssembly, enhancement, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: lth, Assigned: rhunt)
References
Details
Attachments
(4 files)
Updated•8 years ago
|
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Reporter | ||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 6•7 years ago
|
||
Reporter | ||
Comment 7•7 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
Baseline has a limit to the size of the stack frame allowed for an
individual function. I saw comments that wasm-Ion had a similar
restriction but I couldn't find any such restriction.
This commit takes the hardcoded stack frame limit and makes it
an implementation limit in WasmConstants, and uses it explicitly
in wasm-Ion. (Open to discussion if there's an argument for different
limits or no limit in wasm-Ion)
For both stack frame checks, surpassing the limit is reported as
a hard error with a message instead of an OOM. This should provide
better debuggability to users who stumble into this. I think
re-using errors for this makes sense, but if not we could try to
re-use the warning machinery, although it would be a larger change.
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
Backed out for causing SM bustages. CLOSED TREE
Backout link : https://hg.mozilla.org/integration/autoland/rev/462b8ab0d119d85c044a1332446b609786fcabc7
Push with failures : https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=c5d0338411ed996139d799136bad285b534b3ad4&selectedTaskRun=cxs52NUfQkeYorNzvjkXyA.0
Link to failure log : https://treeherder.mozilla.org/logviewer?job_id=351803324&repo=autoland&lineNumber=6580
Assignee | ||
Comment 12•3 years ago
|
||
BadIncludesOrder error missed by testing these patches as part of a larger stack.
Comment 13•3 years ago
|
||
Comment 14•3 years ago
|
||
bugherder |
Description
•