Closed
Bug 1502037
Opened 6 years ago
Closed 6 years ago
Improve error messages when trying to use dropped segments
Categories
(Core :: JavaScript: WebAssembly, enhancement, P3)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
mozilla66
People
(Reporter: lth, Assigned: lth)
References
Details
Attachments
(1 file)
5.55 KB,
patch
|
jseward
:
review+
|
Details | Diff | Splinter Review |
Supposedly active segments have been re-specified in terms of passive segment semantics, along the lines of "an active segment is equal to a mem.init + mem.drop" (ditto table) "running before the start function". This needs to be investigated, and if there are implications for how we handle segments (eg, suppose mem.init is allowed to use an active segment for its source, then we must properly trap because that segment is gone) we must update the code.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
Pretty clean semantics here, for memory.init and here, for data.drop, with trapping behavior.
Assignee | ||
Comment 2•6 years ago
|
||
So far as I can tell, our data structures have the correct semantics for this: the instance has an array of segments for the module, in which active segments are null to begin with and passive segments become null as they are dropped. Both memory.init and data.drop consult this table, and error out (as they should) if an element is null. Active segments are stored elsewhere (presumably the module) and the "implicit memory.init + data.drop" is just window dressing really.
We can however improve the error messages.
Assignee | ||
Comment 3•6 years ago
|
||
Attachment #9038801 -
Flags: review?(jseward)
Assignee | ||
Updated•6 years ago
|
Summary: Bulk memory: Track proposal changes wrt active segments → Improve error messages when trying to use dropped segments
Comment 4•6 years ago
|
||
Comment on attachment 9038801 [details] [diff] [review]
bug1502037-dropped-segment-errors.patch
Review of attachment 9038801 [details] [diff] [review]:
-----------------------------------------------------------------
Looks pretty uncontroversial.
Attachment #9038801 -
Flags: review?(jseward) → review+
Pushed by lhansen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/83097742e871
Better error messages when accessing dropped data/elem segments. r=jseward
Comment 6•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•