Commit Graph

582 Commits

Author SHA1 Message Date
Nicholas Nethercote
bb3ab0a672 Bug 1241656 - Lazify AutoTaskDispatcher::mDirectTasks. r=bholley.
This avoids large amounts of heap churn while watching YouTube videos on Mac
and Linux.
2016-01-25 13:30:42 +11:00
Xidorn Quan
975cc731bd Bug 1237909 part 2 - Do not return value from task for sync dispatch. r=froydnj 2016-01-25 14:52:34 +11:00
Kyle Huey
f38ef1f3ba Backout upgraded assertion in bug 1204784 to make it easier to star. r=me 2016-01-24 17:02:27 -08:00
Tom Tromey
c35c86d248 Bug 757969 - use __thread in ThreadLocal; r=froydnj 2016-01-22 10:33:44 -07:00
Vladan Djeric
064f36b25d Bug 1241507 - Enable BHR reporting on 100% of the Beta population. r=rvitillo 2016-01-21 10:37:33 -05:00
Vladan Djeric
49afd313a4 Bug 1228437 - Add BHR stats from e10s child process. B2G fix by Ting-Yu Chou. r=nchen 2015-12-26 19:34:11 -05:00
Kyle Huey
241a4267ff Bug 1204784: Do not shut the main thread down before all outstanding asynchronous thread shutdowns complete. r=froydnj 2016-01-18 09:34:38 -08:00
Kyle Huey
798fd94c71 Bug 1204784: Upgrade the 'event queue is empty' assertion to a fatal one. r=froydnj 2016-01-15 10:04:14 -08:00
Jan de Mooij
6b0eccbed9 Bug 1237201 part 7 - Handle Vector OOM in nsPerformanceStats, telemetry. r=Yoric 2016-01-14 15:19:37 +01:00
Xidorn Quan
fd62659376 Bug 1238404 - Use 'using' directive instead of having separate Dispatch impl in subclasses of nsIEventTarget. r=froydnj 2016-01-12 15:18:47 +11:00
Mike Conley
ebaada53a6 Bug 1221846 - Get Task Tracer building on desktop r=cyu. 2015-12-02 20:55:38 -05:00
Jeff Muizelaar
de17036a07 Bug 1234618. Fix misdetected BHR hangs. r=jchen
A bunch of threads have their wait time set to PR_INTERVAL_NO_TIMEOUT and so
we divide this by 4 and set waitTime to that. This causes us to wait a very
long but not PR_INTERVAL_NO_TIMEOUT amount of time and so we still update
mIntervalNow and think that we've been hung for a long time when comparing
to the mInterval in the current thread which is set to the previous value of
mIntervalNow.
2015-12-22 18:33:51 -05:00
Chris Peterson
a2b834910d Bug 1234126 - Add Chaos Mode support for setting thread affinity on OS X and Windows. r=froydnj 2015-11-30 19:16:40 -08:00
Andrea Marchesini
0962b374a9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-18 08:44:00 +00:00
Sebastian Hengst
18829a9e77 Backed out changeset 30839ee209e8 (bug 901097) for mochitest failures on Android and Mulet. r=backout 2015-12-17 14:13:59 +01:00
Andrea Marchesini
1a046036d9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-17 12:00:35 +00:00
Wes Kocher
08358b3f37 Backed out changeset 84c8783b8518 (bug 901097) for test_fileReader.html crashes CLOSED TREE 2015-12-16 09:43:42 -08:00
Andrea Marchesini
26c1938206 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-16 12:37:31 +00:00
Carsten "Tomcat" Book
88a5cd026e Backed out changeset d74d1e794421 (bug 901097) for bustage on a CLOSED TREE 2015-12-16 11:48:40 +01:00
Andrea Marchesini
a0d04dad85 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-16 10:15:03 +00:00
Jean-Yves Avenard
02581074c5 Bug 1229299: Use tail dispatch to notify the mirror of new value. r=bholley
This ensures that tasks are run in the proper order.
2015-12-02 10:41:17 +11:00
Randell Jesup
ac8dd14d50 Bug 1211602: Never timeout if timeout == UINT32_MAX r=jib,froydnj 2015-11-18 15:03:17 -05:00
Chris H-C
f2f33bdc16 Bug 1223800 - Accept BHR reports from 50% of beta clients. Up from 1%. r=vladan 2015-11-13 12:09:54 -05:00
Chris H-C
54a4c7b512 Bug 1198196 - rework EVENTLOOP_UI_LAG_EXP_MS to record all lag. r=vladan
Previously we were only logging if we accumulated 50ms of lag. Start logging
all lag so we can use this measure to compare smaller changes in UI
responsiveness.
2015-11-11 14:01:00 +01:00
Carsten "Tomcat" Book
c67642ae48 Backed out changeset 01dac856fde0 (bug 1198196) for mulet problems 2015-11-13 13:39:35 +01:00
Chris H-C
fd87071827 Bug 1198196 - rework EVENTLOOP_UI_LAG_EXP_MS to record all lag. r=vladan
Previously we were only logging if we accumulated 50ms of lag. Start logging
all lag so we can use this measure to compare smaller changes in UI
responsiveness.
2015-11-11 14:01:00 +01:00
Birunthan Mohanathas
94998cf5fe Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Alessio Placitelli
687e484283 Bug 1219751 - Change the the depth limit of the thread hangs stack to use the 99th percentile. r=gfritzsche 2015-10-29 08:05:00 +01:00
Alessio Placitelli
d1fc816e7f Bug 1219216 - Fix a wrong comment in BackgroundHangMonitor.h. r=gfritzsche 2015-10-28 05:47:00 +01:00
Eric Rahm
69f9ed90a7 Bug 1174785 - Part 2: Convert xpcom over to LogModule. r=froydnj 2015-10-19 12:50:14 -07:00
Cervantes Yu
5016e195a3 Bug 1213795, Part 1: Don't fire timers in the Nuwa process to fix test case test_NuwaProcessDeadlock.html. r=khuey 2015-10-19 14:32:12 +08:00
Nathan Froyd
e4e2da55c9 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
5254890206 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Alessio Placitelli
24afbe9afd Bug 1211411 - Limit the number of thread hang stats reported to Telemetry. r=vladan 2015-10-16 07:04:00 +02:00
Xidorn Quan
ceb21140b0 Bug 1186745 part 5 - Make nsThread::Dispatch() always leak the event if it fails. r=froydnj 2015-10-06 13:00:59 +11:00
Xidorn Quan
480aa15bc7 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-10-06 13:00:59 +11:00
Xidorn Quan
c77cf19cea Bug 1186745 part 3 - Make nsThreadSyncDispatch leak the sync task by default when Run() is not called. r=froydnj 2015-10-06 13:00:59 +11:00
Xidorn Quan
067f7da82a Bug 1186745 part 2 - Move nsThreadSyncDispatch class to its own header file. r=froydnj 2015-10-06 13:00:59 +11:00
Xidorn Quan
ca2ef41c62 Bug 1186745 part 1 - Add LeakRefPtr for pointer leaking by default. r=froydnj
This class can be used instead of raw pointer for a sound leaking-by-default
behavior. Also it could take advantage of move semantic check in the future.
2015-10-06 13:00:59 +11:00
Wes Kocher
9e15a76411 Backed out 6 changesets (bug 1186745) for android Cpp failures
Backed out changeset 237a6acf0709 (bug 1186745)
Backed out changeset 7b530871783a (bug 1186745)
Backed out changeset 73f73b531fc8 (bug 1186745)
Backed out changeset e36909748ddf (bug 1186745)
Backed out changeset 3a31df8787f0 (bug 1186745)
Backed out changeset df9cb8f5f0a5 (bug 1186745)
2015-10-02 10:35:09 -07:00
Xidorn Quan
15fe3795b1 Bug 1186745 part 5 - Make nsThread::Dispatch() always leak the event if it fails. r=froydnj 2015-10-03 00:18:24 +10:00
Xidorn Quan
573174c479 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-10-03 00:18:24 +10:00
Xidorn Quan
62a8216414 Bug 1186745 part 3 - Make nsThreadSyncDispatch leak the sync task by default when Run() is not called. r=froydnj 2015-10-03 00:18:24 +10:00
Xidorn Quan
5e0e50ea14 Bug 1186745 part 2 - Move nsThreadSyncDispatch class to its own header file. r=froydnj 2015-10-03 00:18:24 +10:00
Xidorn Quan
d599d6de61 Bug 1186745 part 1 - Add LeakRefPtr for pointer leaking by default. r=froydnj
This class can be used instead of raw pointer for a sound leaking-by-default
behavior. Also it could take advantage of move semantic check in the future.
2015-10-03 00:18:24 +10:00
Jean-Yves Avenard
47e4637afd Bug 1207312: P1. Prevent crash when more than one promise is rejected. r=bholley 2015-10-01 19:07:36 +10:00
Phil Ringnalda
1e38f6291b Back out 6 changesets (bug 1186745) for cpptest failure in runnable_utils_unittest, nrappkit_unittest, test_nr_socket_unittest
Backed out changeset c6142b815de0 (bug 1186745)
Backed out changeset d8f740ef2430 (bug 1186745)
Backed out changeset edc0b56d81fa (bug 1186745)
Backed out changeset 383f8ac033ea (bug 1186745)
Backed out changeset ce960a661987 (bug 1186745)
Backed out changeset 3e9783023fb2 (bug 1186745)
2015-09-28 19:05:02 -07:00
Xidorn Quan
591705d6c9 Bug 1186745 part 5 - Make nsThread::Dispatch() always leak the event if it fails. r=froydnj 2015-09-29 09:28:22 +10:00
Xidorn Quan
4707215240 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-09-29 09:28:22 +10:00
Xidorn Quan
ad0c24a0c5 Bug 1186745 part 3 - Make nsThreadSyncDispatch leak the sync task by default when Run() is not called. r=froydnj 2015-09-29 09:28:22 +10:00