Closed Bug 1805445 Opened 3 years ago Closed 3 years ago

Generalize priority support in the IPDL compiler

Categories

(Core :: IPC, task, P3)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

We have a ton of priorities in IPDL now. It might be worth generalizing things instead of having little bits of boilerplate scattered around. I'm imagining an array of pairs, where the first part of the pair is the IPDL name and the second part is the C++ name. The internal enum value would be an index into the array.

There was some discussion on Matrix and it was pointed out that priority is currently a 3-bit field, so this will need a little subtlety if we want to add more than 3 new priorities (+ the current 5).

I was mostly thinking about the representation of priority values in the IPDL compiler itself, but that's good to keep in mind.

Assignee: nobody → continuation

This patch makes it so that you only need to add a new element to a list
to add a new priority to the IPDL compiler.

A similar thing could be done for the nested attributes, but hopefully nobody is clamoring to add lots more of those.

Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fda8e2847c51 Centralize defining a new priority in the IPDL compiler. r=nika
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: