Andrea Marchesini
02b9ae8ca6
Bug 1416724 - part 1 - AbstractThread::Dispatch should propage errors if failing the dispatching of Runnables, r=jwwang
2017-11-15 07:58:02 +01:00
shindli
ec27542442
Backed out 4 changesets (bug 1416724) for failing /builds/worker/workspace/build/src/dom/media/hls/HLSDemuxer.cpp:89:5 r=backout on a CLOSED TREE
...
Backed out changeset 45352aa4319d (bug 1416724)
Backed out changeset 01d1e5263bcd (bug 1416724)
Backed out changeset bc854c315ec8 (bug 1416724)
Backed out changeset 35a50167485d (bug 1416724)
2017-11-15 09:49:04 +02:00
Andrea Marchesini
1ce9be17f1
Bug 1416724 - part 1 - AbstractThread::Dispatch should propage errors if failing the dispatching of Runnables, r=jwwang
2017-11-15 07:58:02 +01:00
Sylvestre Ledru
8fe7a90fcf
Bug 1387002 - Replace .size() by .empty() when applicable in xpcom/ r=froydnj
...
MozReview-Commit-ID: LWzpVGVV7Py
2017-08-03 12:08:32 +02:00
Bill McCloskey
299232f976
Bug 1366072 - Make AbstractThread inherit from nsISerialEventTarget (r=jwwang)
...
MozReview-Commit-ID: 5L3gUEyGfyL
2017-06-13 14:50:58 -07:00
Bill McCloskey
b9ea10b472
Bug 1365102 - Convert NS_GetCurrentThread uses in xpcom/ (r=froydnj)
...
MozReview-Commit-ID: 69qVzf8QJMq
2017-06-12 20:21:43 -07:00
Bill McCloskey
1ec9f35fbb
Bug 1361164 - Add nsISerialEventTarget (r=froydnj)
...
MozReview-Commit-ID: 8y1GdEGCPSB
2017-06-12 20:20:08 -07:00
Bill McCloskey
04b1343a42
Bug 1361164 - Add infallible IsOnCurrentThread to nsIEventTarget (r=froydnj)
...
MozReview-Commit-ID: 12bk9hQ7Wnv
2017-06-12 20:20:08 -07:00
JW Wang
90a0fb1db0
Bug 1359309. P1 - give mozilla::TaskQueue a name which will be useful in debugging Dispatch() failures. r=jya
...
MozReview-Commit-ID: 5FAVNo32fl7
2017-04-25 14:57:55 +08:00
JW Wang
057482d7a6
Bug 1225731 - Early bailout from TaskQueue::DispatchLocked(). r=froydnj
...
MozReview-Commit-ID: Xhj87WeRID
2016-11-10 15:45:45 +08:00
JW Wang
f1fc04c7e2
Bug 1316529. Part 2 - remove TaskQueue::DispatchMode. r=froydnj
...
MozReview-Commit-ID: 5F2OHCpxx7K
2016-11-10 15:34:35 +08:00
JW Wang
e68ef41435
Bug 1316529. Part 1 - Remove TaskQueue::mIsFlushing. r=froydnj
...
MozReview-Commit-ID: 3x4OO7B2htB
2016-11-10 15:28:48 +08:00
Matt Woodrow
55ea19a6f9
Bug 1288618 - Part 6: Avoid unnecessarily allocating a TailDispatcher for XPCOMThreadWrapper. r=bholley
2016-09-21 21:24:43 +12:00
Carsten "Tomcat" Book
e2adb4a537
Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE
...
Backed out changeset 06187d250f7a (bug 1288618)
Backed out changeset 2a47f8ea1d89 (bug 1288618)
Backed out changeset e179c8e8265d (bug 1288618)
Backed out changeset 25396a1af922 (bug 1288618)
Backed out changeset e98f835c6ee5 (bug 1288618)
Backed out changeset 24df0e89b273 (bug 1288618)
Backed out changeset f8bbdabdb6da (bug 1288618)
Backed out changeset 8b0adeab93df (bug 1288618)
Backed out changeset 95f23366de82 (bug 1288618)
Backed out changeset 63a9c689e1d5 (bug 1288618)
Backed out changeset 8f67443dccb8 (bug 1288618)
Backed out changeset 4e7fe69d5f45 (bug 1288618)
Backed out changeset 53b113acee42 (bug 1288618)
Backed out changeset 2583ae4e2e3b (bug 1288618)
Backed out changeset 75a61d0e71b7 (bug 1288618)
Backed out changeset da740b4fd484 (bug 1288618)
2016-09-21 08:44:11 +02:00
Matt Woodrow
43a74448eb
Bug 1288618 - Part 6: Avoid unnecessarily allocating a TailDispatcher for XPCOMThreadWrapper. r=bholley
2016-09-21 15:36:09 +12:00
Carsten "Tomcat" Book
e234f2956d
Backed out changeset fdee8d1538b0 (bug 1288618)
2016-09-15 16:34:10 +02:00
Matt Woodrow
21f3d511d0
Bug 1288618 - Part 6: Avoid unnecessarily allocating a TailDispatcher for XPCOMThreadWrapper. r=bholley
2016-09-15 23:17:59 +12:00
Ben Kelly
a4687876e8
Bug 1300118 P5 Expose the TaskQueue backlog ImpreciseLengthForHeuristics(). r=bholley
2016-09-13 20:12:15 -07:00
Ben Kelly
7a13c3819c
Bug 1300118 P3 Fix TaskQueue sCurrentThread TLS handling for nsIEventTarget targets. r=jwwang
2016-09-13 20:12:15 -07:00
Ben Kelly
9f6333f5c6
Bug 1300118 P2 Make TaskQueue implement nsIEventTarget. r=bholley
2016-09-13 20:12:15 -07:00
Ben Kelly
ff84f2253e
Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley
2016-09-13 20:12:15 -07:00
Ben Kelly
a63344ac8f
Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley
2016-09-13 20:12:15 -07:00
Wes Kocher
38957ba9d1
Backed out 6 changesets (bug 1300118) for frequent Windows VM Xpcshell failures a=backout CLOSED TREE
...
Backed out changeset 24f714ad248c (bug 1300118)
Backed out changeset 6fe61ed092e8 (bug 1300118)
Backed out changeset dd18e29b64bf (bug 1300118)
Backed out changeset 50882fb40551 (bug 1300118)
Backed out changeset 60e82c1780e5 (bug 1300118)
Backed out changeset e40df52925d5 (bug 1300118)
2016-09-12 16:34:41 -07:00
Ben Kelly
76d8f47506
Bug 1300118 P5 Expose the TaskQueue backlog ImpreciseLengthForHeuristics(). r=bholley
2016-09-12 12:32:21 -07:00
Ben Kelly
ceb22045bf
Bug 1300118 P3 Fix TaskQueue sCurrentThread TLS handling for nsIEventTarget targets. r=jwwang
2016-09-12 12:32:21 -07:00
Ben Kelly
8f7cbca16f
Bug 1300118 P2 Make TaskQueue implement nsIEventTarget. r=bholley
2016-09-12 12:32:20 -07:00
Ben Kelly
3d3a4c9c93
Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley
2016-09-12 12:32:20 -07:00
Ben Kelly
948492dc89
Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley
2016-09-12 12:32:20 -07:00
Ben Kelly
449d185850
Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me
2016-09-12 12:29:17 -07:00
Ben Kelly
f9c073071e
Bug 1300118 P5 Expose the TaskQueue backlog ImpreciseLengthForHeuristics(). r=bholley
2016-09-12 11:21:01 -07:00
Ben Kelly
2063e2c469
Bug 1300118 P3 Fix TaskQueue sCurrentThread TLS handling for nsIEventTarget targets. r=jwwang
2016-09-12 11:21:01 -07:00
Ben Kelly
aeab0a6f2f
Bug 130118 P2 Make TaskQueue implement nsIEventTarget. r=bholley
2016-09-12 11:21:01 -07:00
Ben Kelly
6db37b4b2d
Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley
2016-09-12 11:21:01 -07:00
Ben Kelly
58e677435a
Bug 1300118 P0 Rename NS_DISPATCH_TAIL to NS_DISPATCH_AT_END to avoid confusion with AbstractThread::TailDispatch. r=bholley
2016-09-12 11:21:01 -07:00
Randell Jesup
fd95dddf42
Bug 1213050: clean up TaskQueue before dropping references to it r=cpearce
...
Also adds assertion TaskQueue isn't trying to kill itself
MozReview-Commit-ID: 1AVuYcfnBBA
2016-05-12 00:53:19 -04:00
JW Wang
3999ed844f
Bug 1257063 - Don't destruct the runnable inside the lock when TaskQueue::Dispatch fails. r=bobbyholley.
...
MozReview-Commit-ID: I5KvfHnLUIS
2016-03-18 11:27:15 +08:00
Robert O'Callahan
8d6e6b87f3
Bug 1236789. Avoid creating an unnecessary thread pool thread for tail-dispatch in TaskQueue. r=bholley
...
MozReview-Commit-ID: H1rhQPBU00L
2016-01-05 16:35:17 +13:00
L. David Baron
de10d1c905
Back out changeset b5ec7338bddf (bug 1236789) on a CLOSED TREE for causing assertions on most (but not all) debug test runs.
2016-02-24 15:45:40 -08:00
Robert O'Callahan
354eb7575c
Bug 1236789. Avoid creating an unnecessary thread pool thread for tail-dispatch in TaskQueue. r=bholley
...
MozReview-Commit-ID: H1rhQPBU00L
2016-01-05 16:35:17 +13:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
0456f844d7
Bug 1202667 - make TaskQueue task running slightly more efficient; r=mccr8
...
We can transfer the reference out of the queue of runnables instead of
taking a new reference right before we drop the old one.
2015-09-07 20:02:16 -04:00
Nathan Froyd
d400b7f809
Bug 1202667 - make TaskQueue dispatching slightly more efficient; r=mccr8
...
We're already holding a reference to the Runner prior to dispatching it
to the thread pool; we can pass that reference in rather than requiring
the thread pool to take a new reference to it.
2015-09-07 19:51:54 -04:00
Bobby Holley
4ec317aa7d
Bug 1190495 - Hoist TaskQueue into xpcom. r=froydnj
2015-08-11 08:55:22 -04:00