Native actor refcounting support in IPDL

2019-08-01 Thread Nika Layzell
Bug 1550560 (https://bugzilla.mozilla.org/show_bug.cgi?id=1550560) landed recently, adding native support for declaring actors as *refcounted*. This change improves the ergonomics for declaring and using IPDL actors, and opens avenues for future improvements to the IPC core. *refcounted* is the rec

Re: Native actor refcounting support in IPDL

2019-08-01 Thread Kris Maglione
\o/ This is going to get rid of so much (often buggy, potentially leaky, and slightly varying) boilerplate from most of our IPC code. Thanks! On Thu, Aug 01, 2019 at 03:11:00PM -0400, Nika Layzell wrote: Bug 1550560 (https://bugzilla.mozilla.org/show_bug.cgi?id=1550560) landed recently, addi

Re: Native actor refcounting support in IPDL

2019-08-01 Thread Boris Zbarsky
On 8/1/19 3:11 PM, Nika Layzell wrote: Bug 1550560 (https://bugzilla.mozilla.org/show_bug.cgi?id=1550560) landed recently, adding native support for declaring actors as *refcounted*. Would that allow us to add MOZ_CAN_RUN_SCRIPT bits to the generated code for those cases? -Boris

Re: Native actor refcounting support in IPDL

2019-08-01 Thread Nika Layzell
On Thu, Aug 1, 2019 at 3:45 PM Boris Zbarsky wrote: > On 8/1/19 3:11 PM, Nika Layzell wrote: > > Bug 1550560 (https://bugzilla.mozilla.org/show_bug.cgi?id=1550560) > landed > > recently, adding native support for declaring actors as *refcounted*. > > Would that allow us to add MOZ_CAN_RUN_SCRIPT