Closed
Bug 1635689
Opened 5 years ago
Closed 5 years ago
Stop generating get() methods for unions
Categories
(Core :: IPC, task)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: sg, Assigned: nika)
References
Details
Attachments
(2 files)
No description provided.
Comment 1•5 years ago
|
||
For context, this is about the overloaded get
method with a pointer out param, which needs to copy out the contained value, which is a problem for non-copyable types. Nika thinks that they're not actually used (vs. the get_TypeName
methods) and we could probably just delete the code for them entirely.
(The code appears to be here if I understand lower.py
correctly.)
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → nika
Assignee | ||
Comment 2•5 years ago
|
||
This code is the only caller of this generated method.
Assignee | ||
Comment 3•5 years ago
|
||
This method always copies, and is redundant with the other getter methods on
IPDL unions. As there is only one caller, it can be removed to simplify the
code, and remove a source of complexity.
Pushed by nlayzell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fc7f55903e90
Part 1: Stop using 'get' method on IPDL unions in gfxVars.h, r=jrmuizel
https://hg.mozilla.org/integration/autoland/rev/3d76df0fb77c
Part 2: Stop generating 'get' method on IPDL unions, r=jld
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fc7f55903e90
https://hg.mozilla.org/mozilla-central/rev/3d76df0fb77c
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in
before you can comment on or make changes to this bug.
Description
•