Closed Bug 743436 Opened 13 years ago Closed 12 years ago

remove XPCJSRuntime::mJSCycleCollectionContext and related code

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: igor, Assigned: igor)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

With the bugs 737364, 723286 the xpconnect implementation no longer needs a JSContext instance to run the cycle collection and XPCJSRuntime::mJSCycleCollectionContext becomes unnecessary and should be removed.
Attached patch v1 (obsolete) — Splinter Review
The patch removes no longer used XPCJSRuntime::mJSCycleCollectionContext, nsXPConnect::mCycleCollectionContext and related code to create/destroy contexts. As that made nsCycleCollectionLanguageRuntime::FinishTraverse() empty in all cases I removed that method as well. In couple of places I also fixed rotten DEBUG_CC code to adjust that for recent JS API changes.
Assignee: nobody → igor
Attachment #613114 - Flags: review?(peterv)
Nice cleanup! Could you also remove the line timeLog.Checkpoint("mRuntimes[*]->FinishTraverse()"); from nsCycleCollector::BeginCollection, as there's no finish traverse to time any more.
Attachment #613114 - Flags: review?(peterv) → review+
Any particular reason this never landed, Igor? I've unbitrotted this patch and I'll go ahead and land it assuming it passes a try run.
Attached patch unbitrottedSplinter Review
Carrying forward peterv's review. https://tbpl.mozilla.org/?tree=Try&rev=30903f420b15
Attachment #613114 - Attachment is obsolete: true
Attachment #719153 - Flags: review+
My try push failed because of some kind of warnings-as-errors thing in editor, so that's awesome...
(In reply to Andrew McCreight [:mccr8] from comment #3) > Any particular reason this never landed, Igor? I missed peterv review
Did Igor leave Mozilla? I have not seen him on any bugs in a long time, but I don't follow everything.
(In reply to Paul Wright from comment #8) > Did Igor leave Mozilla? Yes, a year ago.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: