Mapped array buffer loses size information when detached
Categories
(Core :: JavaScript Engine, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox65 | --- | wontfix |
People
(Reporter: ehoogeveen, Assigned: ehoogeveen)
References
Details
Attachments
(1 file, 1 obsolete file)
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Waldo, when would you be able to answer the feedback request?
Comment 13•6 years ago
|
||
I hate this code and I hate the contorted stateful mess we have let it become.
I am doing some patching of my own to see if I can simplify this code and make the state transitions/runtime typing of the data clearer. When that gets done, I'll get back to you as to whether this looks right. Right now, I feel safer about just leaving this code leaking, than I do about the fix, if I'm being completely honest...
Comment 14•6 years ago
|
||
Bug 1529298 will end up fixing this. As to whether the patch here is actually correct...well, ¯\_(ツ)_/¯ even after all that.
Assignee | ||
Comment 15•6 years ago
|
||
Nice! I'll have a look and see if the assertion passes now.
Comment 16•6 years ago
|
||
It should. :-) We do things in a sane way, and ArrayBuffers no longer point at their original data once they're detached, and data is released immediately on detachment. (Which is the only real sane way to do it, to be honest.) Make sure to look at the full rollup patch, probably, rather than sorting through 40-odd patches to find the one that makes the exact change.
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Per Waldo, fixed in bug 1529298.
Description
•