Closed Bug 823953 Opened 12 years ago Closed 12 years ago

Improve sync queue handling

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
firefox-esr17 --- fixed
b2g18 --- fixed

People

(Reporter: khuey, Assigned: khuey)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch PatchSplinter Review
Our sync queue handling is broken when things go wrong.  This cleans it up and fixes a known hang.
Attachment #694859 - Flags: review?(bent.mozilla)
Comment on attachment 694859 [details] [diff] [review]
Patch

Review of attachment 694859 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good!

::: dom/workers/WorkerPrivate.h
@@ +850,5 @@
>  
>  JSStructuredCloneCallbacks*
>  ChromeWorkerStructuredCloneCallbacks(bool aMainRuntime);
>  
> +

Nit: Extra line

@@ +874,5 @@
> +  {
> +    return mSyncLoopKey;
> +  }
> +
> +  ~AutoSyncLoopHolder()

Nit: put this after the constructor.
Attachment #694859 - Flags: review?(bent.mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/95807c27bf99
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment on attachment 694859 [details] [diff] [review]
Patch

Nominating this because it fixes bug 786987 and will make the sheriffs lives easier.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): N/A
User impact if declined: Intermittent orange that must be manually starred (TBPL suggestions don't work) and increases load on the sheriffs.  Fixes an issue which can cause web workers to not work properly when lots of worker threads are used.
Testing completed: Baked on m-c for several days.
Risk to taking this patch (and alternatives if risky): Low risk.
String or UUID changes made by this patch: None.

[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:
User impact if declined: Intermittent orange that must be manually starred (TBPL suggestions don't work) and increases load on the sheriffs.  Fixes an issue which can cause web workers to not work properly when lots of worker threads are used.
Fix Landed on Version: Just central so far.
Attachment #694859 - Flags: approval-mozilla-esr17?
Attachment #694859 - Flags: approval-mozilla-beta?
Attachment #694859 - Flags: approval-mozilla-b2g18?
Attachment #694859 - Flags: approval-mozilla-aurora?
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #4)
> Comment on attachment 694859 [details] [diff] [review]
> Patch
> 
> Nominating this because it fixes bug 786987 and will make the sheriffs lives
> easier.
> 
> [Approval Request Comment]
> Bug caused by (feature/regressing bug #): N/A
> User impact if declined: Intermittent orange that must be manually starred
> (TBPL suggestions don't work) and increases load on the sheriffs.  Fixes an
> issue which can cause web workers to not work properly when lots of worker
> threads are used.
> Testing completed: Baked on m-c for several days.
> Risk to taking this patch (and alternatives if risky): Low risk.
> String or UUID changes made by this patch: None.
> 
> [Approval Request Comment]
> If this is not a sec:{high,crit} bug, please state case for ESR
> consideration:
> User impact if declined: Intermittent orange that must be manually starred
> (TBPL suggestions don't work) and increases load on the sheriffs.  Fixes an
> issue which can cause web workers to not work properly when lots of worker
> threads are used.
> Fix Landed on Version: Just central so far.

Only approving for aurora/b2g18 considering we closer to release Fx 18 and would like to keep the code base consistent unless its a blocker issue.
Attachment #694859 - Flags: approval-mozilla-beta?
Attachment #694859 - Flags: approval-mozilla-beta-
Attachment #694859 - Flags: approval-mozilla-b2g18?
Attachment #694859 - Flags: approval-mozilla-b2g18+
Attachment #694859 - Flags: approval-mozilla-aurora?
Attachment #694859 - Flags: approval-mozilla-aurora+
Comment on attachment 694859 [details] [diff] [review]
Patch

Approving on esr based on comment 4.
Attachment #694859 - Flags: approval-mozilla-esr17? → approval-mozilla-esr17+
Looks like this is going to need some love to land on esr17.
Kyle, is there any testing QA needs to do around this issue?
Thanks Kyle. Tagging this bug [qa-]. Please add qawanted keyword if you change your mind.
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: