Closed
Bug 1449138
Opened 6 years ago
Closed 6 years ago
StrongWorkerRef should not release the holder immediately
Categories
(Core :: DOM: Workers, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file)
1.68 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Currently, StrongWorkerRef is not so strong to keep the worker alive...
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #8962667 -
Flags: review?(bugs)
Updated•6 years ago
|
Priority: -- → P2
Comment 3•6 years ago
|
||
Note to myself, MessagePort used to have similar behavior when it still had MessagePortWorkerHolder (its state handling + UpdateMustKeepAlive(); is error prone). And BroadcastChannel (oddly enough, bc has RefPtr<WorkerRef>, not RefPtr<StrongWorkerRef> member variable.) I don't understand FileReader::Shutdown(), but the issue I don't understand was there already before WorkerRefs (why have mBusyCount, when we don't really care about it there.) EventSource looks ok. So does IPCBlobInputStreamChild, and Promise stuff
Updated•6 years ago
|
Attachment #8962667 -
Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2c9044fa02f9 StrongWorkerRef should not release the holder immediately but only in the DTOR, r=smaug
Comment 5•6 years ago
|
||
Backed out changeset 2c9044fa02f9 (bug 1449138) for wpt failures in /builds/worker/workspace/build/src/dom/workers/WorkerRef.cpp:201 on a CLOSED TREE Problematic push: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=2c9044fa02f939ef1f2dae0384666845e5b5098d&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified Failure: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&fromchange=3dd5ec97e04873675c948ea790736c2a6639c3cb&filter-classifiedState=unclassified&selectedJob=170606321 Backout: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=adfa3b56cbdc68827ad9603fd338ab321632858b&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified Log: https://treeherder.mozilla.org/logviewer.html#?job_id=170606321&repo=mozilla-inbound&lineNumber=19871 task 2018-03-27T17:36:56.170Z] 17:36:56 INFO - PID 13091 | [Child 13155, DOM Worker] WARNING: '!holder->HoldWorker(aWorkerPrivate, Closing)', file /builds/worker/workspace/build/src/dom/workers/WorkerRef.cpp, line 185 [task 2018-03-27T17:36:56.170Z] 17:36:56 INFO - PID 13091 | Assertion failure: mHolder, at /builds/worker/workspace/build/src/dom/workers/WorkerRef.cpp:201
Flags: needinfo?(amarchesini)
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(amarchesini)
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7cfbbb86ef23 StrongWorkerRef should not release the holder immediately but only in the DTOR, r=smaug
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7cfbbb86ef23
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•