Closed Bug 1182318 Opened 10 years ago Closed 10 years ago

Remove |Closure| from CycleCollectedRuntime.cpp

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: n.nethercote, Assigned: mccr8)

References

Details

Attachments

(2 files)

In bug 1181445 comment 20, mccr8 said: > > // NB: This is here just to preserve the existing XPConnect order. I doubt it > > // would hurt to do this after the JS holders. > > TraverseAdditionalNativeRoots(aCb); > > > > Closure closure(&aCb); > > This closure can be disentangled more [...] In short: closure.mCb is aCb and > the closure for TraceCallbackFunc can just become bool*. I just mashed > together two different closures for convenience.
I can do this after the other bug lands and merges over.
Flags: needinfo?(continuation)
Assignee: nobody → continuation
Flags: needinfo?(continuation)
Closure is now just a wrapper around a single boolean, so instead pass a pointer to the boolean.
Attachment #8633501 - Flags: review?(bugs)
Attachment #8633500 - Flags: review?(bugs) → review+
Attachment #8633501 - Flags: review?(bugs) → review+
Thanks for the fast reviews.
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: