Wes Kocher
8c4ce17711
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: DCUf7VEDrTt
2017-02-17 13:38:51 -08:00
Jan de Mooij
7c17ed23c6
Bug 1337499 - Take the Win64 stackwalk lock in WalkStackMain64 to avoid deadlocks. r=mstange
2017-02-17 10:51:11 +01:00
Carsten "Tomcat" Book
f3b2544de0
Merge mozilla-central to autoland
2017-02-16 13:20:11 +01:00
Bill McCloskey
8eb70fcb8f
Bug 1339289 - Make sure labeled runnables have names (r=ehsan)
...
MozReview-Commit-ID: C6w8Q4NPBtt
2017-02-15 12:30:01 -08:00
Bill McCloskey
0cda76d680
Bug 1339289 - Give names to a lot of common timers (r=ehsan)
...
MozReview-Commit-ID: IMsv5bkyjBL
2017-02-15 12:30:01 -08:00
Bill McCloskey
194043ae97
Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
...
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Nicholas Nethercote
334f89c567
Bug 1339327 (part 5) - Rename some profiler functions related to sleeping. r=mstange.
...
The new names make it clearer that these actions apply to just one thread.
- profiler_sleep_start() --> profiler_thread_sleep()
- profiler_sleep_end() --> profiler_thread_wake()
- profiler_is_sleeping() --> profiler_thread_is_sleeping()
- GeckoProfilerSleepRAII --> GeckoProfilerThreadSleepRAII
- GeckoProfilerWakeRAII --> GeckoProfilerThreadWakeRAII
2017-02-15 14:26:23 +11:00
Jeff Walden
d7372e37d9
Bug 1338374 - Use alignas/alignof to define Variant's internal raw storage. r=froydnj
...
--HG--
extra : rebase_source : a75613ba7c17ceccf20e6f096a118bfedfa1eb15
2017-01-30 15:56:05 -08:00
JW Wang
51b91b868e
Bug 1339677. Part 4 - check if mMutex.mLock is tampered. r=gerald
...
MozReview-Commit-ID: H37EnCF0V4w
--HG--
extra : rebase_source : 6637f059ab76317f05187c865faa7ea70d762609
extra : source : 2cf36fc3f2a191aafc3a0aca159ed0baf5d671af
2017-02-15 16:42:26 +08:00
JW Wang
fd3595243f
Bug 1339677. Part 3 - add some sanity checks. r=gerald
...
MozReview-Commit-ID: AXq9KQGKGni
--HG--
extra : rebase_source : e78a7339920605ee66e407e184582f80588646f8
extra : source : 53227d5296decb587aaf214c8f33875cdb2a6f2d
2017-02-16 11:43:46 +08:00
JW Wang
46381af26b
Bug 1339677. Part 2 - some code cleanup and remove unnecessary scope qualifiers. r=gerald
...
MozReview-Commit-ID: 5h7Mv5joGHy
--HG--
extra : rebase_source : 0f81f34b6a7a78e1832c8c5e8f3f570e7e4719fc
extra : intermediate-source : 88dbebd4cfab00aa234b04c3d279ab1e3b82833f
extra : source : 66e5c1b54d22de67b9838afb790805ef8cf1f23e
2017-01-24 16:24:10 +08:00
JW Wang
51d90c702d
Bug 1339677. Part 1 - assert DoResolveOrReject() is called on the target thread and use stronger assertions. r=gerald
...
MozReview-Commit-ID: I1wdNfjehTN
--HG--
extra : rebase_source : e1e3d336b3df10bd3257983a3d34275df0fe8048
extra : intermediate-source : fc357179510cd164c66a391ca67d6b32af85566c
extra : source : bcb07a4f12acb396406fec2d368507a45312ecfa
2017-01-24 16:13:23 +08:00
Tom Tromey
6ecf3cdfb2
Bug 1060419 - make nsEnvironment.cpp use Printf.h, r=froydnj
...
MozReview-Commit-ID: 9GnlfmGm0LH
--HG--
extra : rebase_source : 2cbf3cccd3fd7b9584086a814a0f834267c5b2f9
2016-12-09 10:53:59 -10:00
Bill McCloskey
c6b9c4a0bf
Bug 1337575 - Use SystemGroup for GC/CC (r=mccr8)
...
MozReview-Commit-ID: 9vLuFnuHS9U
2017-02-13 17:02:59 -08:00
Bill McCloskey
1ae37fef66
Bug 1337537 - Assert that runnables labeled with a given TabGroup never touch other TabGroups (r=ehsan)
...
MozReview-Commit-ID: sOdn9e5f57
2017-02-13 17:02:57 -08:00
Bill McCloskey
e1b2f2ef09
Bug 1337537 - Make a SystemGroup singleton (r=ehsan)
...
MozReview-Commit-ID: Jnwrr49daeM
2017-02-13 17:02:52 -08:00
Bill McCloskey
9b20275aa5
Bug 1337537 - Move some TabGroup code to ValidatingDispatcher (r=ehsan)
...
MozReview-Commit-ID: EUqZKx2rAOt
2017-02-13 17:02:50 -08:00
Bill McCloskey
bea9c4205c
Bug 1337537 - Move Dispatcher.{cpp,h} to xpcom/threads (r=froydnj)
...
MozReview-Commit-ID: AYyKynUv4bX
2017-02-13 17:02:48 -08:00
Bevis Tseng
2128d8e3a2
Bug 1333997 - Part 2: Overload the NewRunnable APIs with a 'Name' as 1st Parameter. r=froydnj
...
--HG--
extra : rebase_source : b7aaaf3acf2edd6cfaff467db6436d5f2d1addb0
2017-02-07 13:02:57 +08:00
Bevis Tseng
a9f9ffc077
Bug 1333997 - Part 1: Add Type Aliases for NewRunnable Templates. r=froydnj
...
--HG--
extra : rebase_source : d2f41c2afd2da1a27b15d03be11f2d76c439734a
2017-02-06 18:08:01 +08:00
Byron Campen [:bwc]
276d12bcef
Bug 1328643: Add some locking to prevent races caused by Cancel/Init from threads other than the target. r=froydnj
...
MozReview-Commit-ID: FdAPTGDNKup
--HG--
extra : rebase_source : f0b04c73f0867708750fb9022e07f929ec221e84
2017-01-11 13:59:19 -06:00
Andrew McCreight
3dacb601cf
Bug 1333974, part 1 - Add new API for releasing on main thread using the system group. r=froydnj
...
MozReview-Commit-ID: KP71tgpaXaY
--HG--
extra : rebase_source : c2cd25ee412748d47ed0953e2766fa8f40505d59
2017-01-31 11:35:10 -08:00
Chris Peterson
e3e3523d58
Bug 1331171 - Part 3: Remove xpcom checks for Windows Vista. r=froydnj
...
Also remove the #includes of some unused header files.
MozReview-Commit-ID: 6mRoIazEA3j
--HG--
extra : rebase_source : 6f96d22543509bf09b684b0bfbfa624eafc58b94
2017-01-12 01:13:55 -08:00
Bill McCloskey
9c91994cbc
Bug 1332494 - Add SystemGroup class similar to TabGroup/DocGroup (r=froydnj)
...
MozReview-Commit-ID: ApxMkd5zEQ5
2017-01-26 14:45:58 -08:00
Bill McCloskey
ec760e9fba
Bug 1332494 - Move TaskCategory definition to xpcom/threads/TaskCategory.h (r=froydnj)
...
MozReview-Commit-ID: ET43PbGRgxl
2017-01-26 14:45:58 -08:00
Nicholas Nethercote
22b6d342d7
Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
...
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Bill McCloskey
5c55b07334
Bug 1331804 - Measure runnable times keyed by name for telemetry (r=ehsan,bsmedberg)
...
MozReview-Commit-ID: FQmJKwEgBdv
2017-01-24 16:34:37 -08:00
Bill McCloskey
928b73f143
Bug 1331804 - Anonymize nsITimer runnable names (r=njn)
...
MozReview-Commit-ID: 5qoN9BKkH18
2017-01-24 16:34:37 -08:00
Bill McCloskey
608ea1b84a
Bug 1331804 - Name each runnable from the ThrottledEventQueue queue (r=bkelly)
...
MozReview-Commit-ID: GRpBjmcKoah
2017-01-24 16:34:37 -08:00
Bill McCloskey
cf9eef1ea4
Bug 1331804 - Give runnable names to some generic dispatch sites (r=ehsan)
...
MozReview-Commit-ID: 83IL5zcor1W
2017-01-24 16:34:37 -08:00
Bill McCloskey
ef3d0f1c2e
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 16:34:37 -08:00
Wes Kocher
a65c1b1dfe
Merge inbound to central, a=merge
...
MozReview-Commit-ID: BeGxZAeguBr
2017-01-24 16:08:16 -08:00
Benjamin Smedberg
60cd8481eb
Bug 1332631 part D - file moves from xpcom/glue to xpcom/threads, r=froydnj
...
MozReview-Commit-ID: kDBGvlYjyW
--HG--
rename : xpcom/glue/BlockingResourceBase.cpp => xpcom/threads/BlockingResourceBase.cpp
rename : xpcom/glue/BlockingResourceBase.h => xpcom/threads/BlockingResourceBase.h
rename : xpcom/glue/CondVar.h => xpcom/threads/CondVar.h
rename : xpcom/glue/DeadlockDetector.h => xpcom/threads/DeadlockDetector.h
rename : xpcom/glue/MainThreadUtils.h => xpcom/threads/MainThreadUtils.h
rename : xpcom/glue/Monitor.h => xpcom/threads/Monitor.h
rename : xpcom/glue/Mutex.h => xpcom/threads/Mutex.h
rename : xpcom/glue/ReentrantMonitor.h => xpcom/threads/ReentrantMonitor.h
rename : xpcom/glue/nsProxyRelease.cpp => xpcom/threads/nsProxyRelease.cpp
rename : xpcom/glue/nsProxyRelease.h => xpcom/threads/nsProxyRelease.h
rename : xpcom/glue/nsThreadUtils.cpp => xpcom/threads/nsThreadUtils.cpp
rename : xpcom/glue/nsThreadUtils.h => xpcom/threads/nsThreadUtils.h
extra : rebase_source : 5f908c04835192c1949bed0828d7bd086e795f64
extra : histedit_source : 26a8dbfd9b082c9200fbe7b176f6593e406c98ce
2017-01-20 14:13:57 -05:00
Carsten "Tomcat" Book
f040eda61d
Merge mozilla-central to autoland
2017-01-23 11:42:26 +01:00
Carsten "Tomcat" Book
e12cc94275
merge mozilla-inbound to mozilla-central a=merge
2017-01-23 11:15:58 +01:00
Gerald Squelart
eb46a3cefe
Bug 1332785 - Optimize MozPromiseHolder::Resolve and Reject - r=jwwang
...
Instead of lvalues, MozPromiseHolder::Resolve and Reject now take either
const& or && values of the expected types, to allow move semantics all the way
to the ResolveOrRejectValue object.
Note that we won't just take forwarding references of any type, as this could
lead to implicit conversions by bypassing the 'explicit' marker of the value
type constructors, like in bug 1331137.
MozReview-Commit-ID: K0jeY6WTXI1
--HG--
extra : rebase_source : 7ee0fd1edfdeadb239f48c8b5b46fd54af3ec5d2
2017-01-21 12:24:10 +11:00
JW Wang
d7ec453920
Bug 1333280
- Make ThenValueBase::mCompletionPromise a MozPromise::Private. r=gerald
...
MozReview-Commit-ID: E046bQoQN1
--HG--
extra : rebase_source : e8563000ac0ab452d703dd6e67878e8605f7acc9
extra : intermediate-source : 514e9122a222fba252f47673fbe3cf842c322790
extra : source : 7f2bf86df00cc33737da5a2aaa8052cc60c5d8cf
2017-01-23 17:47:27 +08:00
Gerald Squelart
25992688b7
Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder - r=jwwang
...
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one taking the
resolve/reject object by value.
Since this value will not be used again in the lambda, it is safe to Move it,
and from there MozPromiseHolder::Resolve/Reject can also Move it again into the
holder storage, potentially saving two copies per Resolve/Reject.
Also, once all sub-promises have been resolved, the resolve-values can be
Move'd into the joining promise's Resolve function.
MozReview-Commit-ID: 5oxgNEnE5lq
--HG--
extra : rebase_source : f0542055beb1434e7db384722c5123d888ca00e7
2017-01-21 17:33:49 +11:00
Gerald Squelart
5c95a7141e
Bug 1332779 - InvokeAsync's MethodCall constructor should take forwarding refs instead of lvalues - r=jwwang
...
The aArgs parameter pack was already Forward'ed inside the constructor, so
maybe the '&&' was forgotten?
MozReview-Commit-ID: 7yg07axhZnp
--HG--
extra : rebase_source : dccd3ea5f0f1b6cadfe6bbc86c8ad34cb7f2c99e
2017-01-21 12:04:54 +11:00
Nicholas Nethercote
12647a7223
Bug 1332577 (part 7) - Rename mozilla_get_pseudo_stack() as profiler_get_pseudo_stack(). r=mstange.
...
This makes it consistent with other profiler functions.
--HG--
extra : rebase_source : 1e52acdc448691b8859bb147a0c70b198b432fe2
2017-01-20 15:07:05 +11:00
Nathan Froyd
28f29930ef
Bug 1324894 - use standard Monitor APIs rather than PR_Interrupt in BackgroundHangMonitor; r=darchons
...
Using PR_Interrupt here makes life difficult for other things, such as
moving away from NSPR synchronization primitives.
2017-01-20 16:38:12 -05:00
Bevis Tseng
849cf42acf
Bug 1314833 - Part 1.1: Refator XPCOMThreadWrapper as EventTargetWrapper to allow EventTargets to be AbstractThreads. r=jwwang
...
MozReview-Commit-ID: FYjbKxcIc5o
--HG--
extra : rebase_source : 37d55a393552bf4cf5de1ad25c2039fde8517f3a
2016-11-29 13:01:18 +08:00
JW Wang
84387b56fe
Bug 1328130. Part 3 - remove unused functions and fix comments. r=gerald
...
MozReview-Commit-ID: JURmHasmhOU
--HG--
extra : rebase_source : f2113e74e5abb0d57b2c70eb7b47b5d6c2829a3d
extra : intermediate-source : 88255f6011134a455b3bee888ebee256209f8e56
extra : source : 5371fe5d527981419953fae96d5cc80d6d15b413
2017-01-11 23:52:24 +08:00
JW Wang
4f5754ca55
Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
...
MozReview-Commit-ID: JL27n0Era6E
--HG--
extra : rebase_source : e6de76db3fb35b110370497f4060ea1c3f527f23
extra : intermediate-source : 5bc39a45ef042b895a5abda59cc0796e8cfb4be3
extra : source : a7f7faded7b112e8a971ca96b091a9a22214a2bb
2017-01-11 16:33:29 +08:00
JW Wang
bc040ae51e
Bug 1328130. Part 1 - add ->Track(). r=gerald
...
MozReview-Commit-ID: FW7Urv6nyOS
--HG--
extra : rebase_source : 256576fa8b1e5bb6587e280512619f5d7e74a0cc
extra : intermediate-source : 82d0eea2d53edd8d538bc2d0fd0116046fb489b7
extra : source : 9f4301a98b836ec5fc4ca9e49e6a32f0232b71e5
2017-01-11 15:38:37 +08:00
Nicholas Nethercote
949658eb73
Bug 1329857 - Remove NS_METHOD and NS_CALLBACK. r=froydnj.
...
Bug 1295053 removed most uses of NS_METHOD and NS_CALLBACK, but one use was
unintentionally left behind (in the XPIDL parser) and another has since crept
in (in MediaDrmCDMProxy.h).
So this patch removes NS_METHOD and NS_CALLBACK. NS_METHOD_(nsresult) and
NS_CALLBACK_(nsresult, T) can still be used for the same purpose, but those
alternatives are less likely to be used unintentionally.
--HG--
extra : rebase_source : a50fc7b2a64a36d1ca9beda81bc0edb8f2ec1934
2017-01-10 14:08:43 +11:00
Gerald Squelart
5d4cad020a
Bug 1320785 - Remove obsolete 'ns' from 'StorensRefPtrPassByPtr' - r=froydnj
...
MozReview-Commit-ID: FuhlsLVFdLi
--HG--
extra : rebase_source : c1bb8330c4ca0dbf15a68a4dbd0dfeff615163be
2017-01-09 07:55:19 +11:00
Gerald Squelart
d551220947
Bug 1322964 - MozPromise.Then() taking only one resolve+reject method - r=jwwang
...
Then and ThenPromise can now be given only one member function, which takes a
`const MozPromise::ResolveOrRejectValue&`.
MozReview-Commit-ID: 5Zm0i27GHcA
--HG--
extra : rebase_source : 1ed068681616fa0aa5fa77f8dbf78ccbd727f363
2016-12-08 23:09:07 -10:00
Gerald Squelart
b3e89a3af9
Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
...
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.
MozReview-Commit-ID: BEtc3spK9Yh
--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
Gerald Squelart
9a05a0446d
Bug 1322964 - MozPromise clean-up - r=jwwang
...
Removed 'virtual' from overrides, as per coding guidelines.
Fixed some incorrect indentations, and inconsistencies.
MozReview-Commit-ID: 4kNVgoDljG3
--HG--
extra : rebase_source : 7b25abacc7cfc1a6898963bc58120204c70bee45
2016-12-08 10:48:48 -10:00