Closed Bug 534341 Opened 15 years ago Closed 15 years ago

XPConnect should not unroot globals of non-main thread contexts

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2
Tracking Status
status1.9.2 --- final-fixed
blocking1.9.1 --- .8+
status1.9.1 --- .8-fixed

People

(Reporter: peterv, Assigned: peterv)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
Since we don't cycle collect contexts that are not on the main thread.

We found this while running the test in bug 531225. Bent says this causes crashes (I killed it before it crashed).
Flags: blocking1.9.2?
Attachment #417203 - Flags: superreview?(jst)
Attachment #417203 - Flags: review?(bent.mozilla)
Attachment #417203 - Flags: review?(bent.mozilla) → review+
http://hg.mozilla.org/mozilla-central/rev/8f6bdbf8e701
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
blocking1.9.1: ? → .7+
Comment on attachment 417203 [details] [diff] [review]
v1

+    static inline JSBool IsMainThreadContext(JSContext *cx)
+    {
+        return cx->thread == sMainJSThread;
+    }

We already have IsMainThread(JSContext *cx), maybe just use that? :)

sr=jst with that.
Attachment #417203 - Flags: superreview?(jst) → superreview+
Flags: blocking1.9.2? → blocking1.9.2+
Whiteboard: [has patch][can land 1.9.2]
Attached patch v1Splinter Review
Attachment #417203 - Attachment is obsolete: true
Attachment #417945 - Flags: superreview+
Attachment #417945 - Flags: review+
Attachment #417945 - Flags: approval1.9.1.7?
Comment on attachment 417945 [details] [diff] [review]
v1

Approved for 1.9.1.7, a=dveditz for release-drivers
Attachment #417945 - Flags: approval1.9.1.7? → approval1.9.1.7+
Peter, any chance for QA to test this fix with a 3.5.8pre build? Do we have automated tests which cover code lines around the given patch and we can trust?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: