Closed
Bug 1435263
Opened 6 years ago
Closed 6 years ago
Get rid of WorkerPrivateParent template
Categories
(Core :: DOM: Workers, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(19 files)
This is going to be a multi patch bug in order to do this operation step by step. Note that this is meant to apply on top of bug 1435174 and bug 1435196.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee: nobody → amarchesini
Attachment #8947825 -
Flags: review?(bkelly)
Assignee | ||
Comment 2•6 years ago
|
||
Attachment #8947827 -
Flags: review?(bkelly)
Assignee | ||
Comment 3•6 years ago
|
||
Attachment #8947829 -
Flags: review?(bkelly)
Assignee | ||
Comment 4•6 years ago
|
||
Attachment #8947830 -
Flags: review?(bkelly)
Assignee | ||
Comment 5•6 years ago
|
||
Attachment #8947832 -
Flags: review?(bkelly)
Assignee | ||
Comment 6•6 years ago
|
||
Attachment #8947833 -
Flags: review?(bkelly)
Assignee | ||
Comment 7•6 years ago
|
||
Attachment #8947835 -
Flags: review?(bkelly)
Assignee | ||
Comment 8•6 years ago
|
||
Attachment #8947836 -
Flags: review?(bkelly)
Assignee | ||
Comment 9•6 years ago
|
||
Attachment #8947838 -
Flags: review?(bkelly)
Assignee | ||
Comment 10•6 years ago
|
||
Attachment #8947839 -
Flags: review?(bkelly)
Assignee | ||
Comment 11•6 years ago
|
||
Attachment #8947840 -
Flags: review?(bkelly)
Assignee | ||
Comment 12•6 years ago
|
||
Attachment #8947841 -
Flags: review?(bkelly)
Assignee | ||
Comment 13•6 years ago
|
||
Attachment #8947842 -
Flags: review?(bkelly)
Assignee | ||
Comment 14•6 years ago
|
||
Attachment #8947846 -
Flags: review?(bkelly)
Assignee | ||
Comment 15•6 years ago
|
||
Attachment #8947848 -
Flags: review?(bkelly)
Assignee | ||
Comment 16•6 years ago
|
||
Attachment #8947852 -
Flags: review?(bkelly)
Assignee | ||
Comment 17•6 years ago
|
||
Attachment #8947858 -
Flags: review?(bkelly)
Assignee | ||
Comment 18•6 years ago
|
||
Attachment #8947860 -
Flags: review?(bkelly)
Assignee | ||
Comment 19•6 years ago
|
||
This last patch is just about having this format: class WorkerPrivate { public: methods; private: methods; members; };
Attachment #8947861 -
Flags: review?(bkelly)
Updated•6 years ago
|
Priority: -- → P1
Updated•6 years ago
|
Attachment #8947825 -
Flags: review?(bkelly) → review+
Comment 20•6 years ago
|
||
Comment on attachment 8947827 [details] [diff] [review] part 1 - BusyCount and ParentStatus Review of attachment 8947827 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/workers/WorkerPrivate.h @@ +910,5 @@ > bool mOnLine; > > + // This is touched on parent thread only, but it can be read on a different > + // thread before crashing because hanging. > + Atomic<uint64_t> mBusyCount; Can you put this before the bool members to improve packing?
Attachment #8947827 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947829 -
Flags: review?(bkelly) → review+
Comment 21•6 years ago
|
||
Comment on attachment 8947830 [details] [diff] [review] part 3 - creation time Review of attachment 8947830 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/workers/WorkerPrivate.h @@ +882,5 @@ > // thread before crashing because hanging. > Atomic<uint64_t> mBusyCount; > > + TimeStamp mCreationTimeStamp; > + DOMHighResTimeStamp mCreationTimeHighRes; Again, it would be nice if we put these before the bool members to improve packing.
Attachment #8947830 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947832 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947833 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947835 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947836 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947838 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947839 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947840 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947841 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947842 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947846 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947848 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947852 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947858 -
Flags: review?(bkelly) → review+
Updated•6 years ago
|
Attachment #8947860 -
Flags: review?(bkelly) → review+
Comment 22•6 years ago
|
||
Comment on attachment 8947861 [details] [diff] [review] part 18 - private/public sections Review of attachment 8947861 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for all these improvements. Maybe we could do one more patch or bug to make WorkerPrivate back optimally? I think there are still some bool's mixed with other types, etc.
Attachment #8947861 -
Flags: review?(bkelly) → review+
Comment 23•6 years ago
|
||
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/90740727f182 Get rid of WorkerPrivateParent template - part 0 - WorkerPrivate::EventTarget, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/daf0bb245dbb Get rid of WorkerPrivateParent template - part 1 - BusyCount and ParentStatus, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/c0647c416bc2 Get rid of WorkerPrivateParent template - part 2 - mMainThreadObjectsForgotten, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/0fdd203c2ffb Get rid of WorkerPrivateParent template - part 3 - creation time, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/853d78f5cbee Get rid of WorkerPrivateParent template - part 4 - LoadInfo, JSSettings, ParentFrozen, IsSecureContext and IsChromeWorker, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/c71b6887c78c Get rid of WorkerPrivateParent template - part 5 - mParent, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/3d025bdc4c4b Get rid of WorkerPrivateParent template - part 6 - ScriptURL and WorkerName, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/382d5387d9f9 Get rid of WorkerPrivateParent template - part 7 - WorkerType, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/93ad1a38b40c Get rid of WorkerPrivateParent template - part 8 - QueueRunnables, ParentWindowPauseDepth, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/1e522b145b42 Get rid of WorkerPrivateParent template - part 9 - SharedWorkers, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/d48000437e94 Get rid of WorkerPrivateParent template - part 10 - PreStartRunnables, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/f819bc8e2457 Get rid of WorkerPrivateParent template - part 11 - Debugger, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/7ca8a99e286a Get rid of WorkerPrivateParent template - part 12 - Freeze/Thaw, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/20b7fc423f7d Get rid of WorkerPrivateParent template - part 13 - Start/Close/Kill/Terminate, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/81af68b2de18 Get rid of WorkerPrivateParent template - part 14 - MaybeWrapAsWorkerRunnable and ProxyReleaseMainThreadObjects, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/d0c92aaeeff6 Get rid of WorkerPrivateParent template - part 15 - update methods, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/3901faa7593e Get rid of WorkerPrivateParent template - part 16 - Dispatch methods, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/e6e8bbc7b68f Get rid of WorkerPrivateParent template - part 17 - WorkerPrivateParent, r=bkelly https://hg.mozilla.org/integration/mozilla-inbound/rev/c40197fd33e0 Get rid of WorkerPrivateParent template - part 18 - private/public sections, r=bkelly
Comment 24•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/90740727f182 https://hg.mozilla.org/mozilla-central/rev/daf0bb245dbb https://hg.mozilla.org/mozilla-central/rev/c0647c416bc2 https://hg.mozilla.org/mozilla-central/rev/0fdd203c2ffb https://hg.mozilla.org/mozilla-central/rev/853d78f5cbee https://hg.mozilla.org/mozilla-central/rev/c71b6887c78c https://hg.mozilla.org/mozilla-central/rev/3d025bdc4c4b https://hg.mozilla.org/mozilla-central/rev/382d5387d9f9 https://hg.mozilla.org/mozilla-central/rev/93ad1a38b40c https://hg.mozilla.org/mozilla-central/rev/1e522b145b42 https://hg.mozilla.org/mozilla-central/rev/d48000437e94 https://hg.mozilla.org/mozilla-central/rev/f819bc8e2457 https://hg.mozilla.org/mozilla-central/rev/7ca8a99e286a https://hg.mozilla.org/mozilla-central/rev/20b7fc423f7d https://hg.mozilla.org/mozilla-central/rev/81af68b2de18 https://hg.mozilla.org/mozilla-central/rev/d0c92aaeeff6 https://hg.mozilla.org/mozilla-central/rev/3901faa7593e https://hg.mozilla.org/mozilla-central/rev/e6e8bbc7b68f https://hg.mozilla.org/mozilla-central/rev/c40197fd33e0
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•