Randell Jesup
197c078dad
Bug 1197152: Alternative to remove all sleep/wake functionality from Timers r=froydnj
...
CLOSED TREE
2015-09-08 11:34:09 -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
Nathan Froyd
b3040035c3
Bug 1195767 - part 5 - use signaling instead of broadcast when work items are placed in nsEventQueue; r=gerald
...
There's no reason to wake up all the threads in a thread pool when one
item gets placed in the queue. Waking up one will serve the same
purpose and is significantly more efficient for thread pools with large
numbers of threads.
2015-09-03 16:38:18 -04:00
Nathan Froyd
83a8687229
Bug 1195767 - part 4 - remove nsEventQueue::GetReentrantMonitor; r=gerald
...
The last commit eliminated the only client of this method, so we can
remove it now.
2015-09-03 16:37:51 -04:00
Nathan Froyd
c45da26399
Bug 1195767 - part 3 - modify nsThreadPool to use a non-reentrant monitor; r=gerald
...
There's no reason nsThreadPool needs to use a reentrant monitor for
locking its event queue. Having it use a non-reentrant one should be
slightly more efficient, both in the general operation of the monitor,
and that we're not performing redundant locking in methods like
nsThreadPool::Run. This change also eliminates the only usage of
nsEventQueue::GetReentrantMonitor.
2015-09-03 15:38:28 -04:00
Nathan Froyd
7dcb93ea14
Bug 1195767 - part 2 - create an nsEventQueueBase templated over the monitor type; r=gerald
...
Clients of nsEventQueue don't always need fully reentrant monitors.
Let's account for that by having a base class templated on the monitor
type. This change also opens up the possibility of having the monitor
for the event queue not owned by the event queue itself, but by the
client class, which makes a lot more sense than the current design.
2015-08-28 13:26:17 -04:00
Nathan Froyd
259eb67aba
Bug 1195767 - part 1 - remove nsCOMPtr temporary from nsEventQueue::PutEvent; r=gerald
...
The comment here suggests that we might AddRef/Release, but we really do
no such thing. Let's deal with the transfer of ownership directly,
rather than going through nsCOMPtr. This change makes the code slightly
smaller, and it also makes later refactorings to pull the lock out of
this function easier to do, since we don't have to consider how to hold
the lock within the lifetime of the nsCOMPtr temporary.
2015-08-28 14:19:49 -04:00
Miko Mynttinen
59fcd0e44e
Bug 1201287 - Cleanup nsSupportsPrimitives.cpp. r=smaug
2015-09-06 19:53:33 +03:00
Phil Ringnalda
5c842ec26e
Backed out 10 changesets (bug 1123237) for hazard build failures and Windows test failures
...
CLOSED TREE
Backed out changeset 9c26b3b787f8 (bug 1123237)
Backed out changeset 1fcec0dc93d5 (bug 1123237)
Backed out changeset 390033ceebb6 (bug 1123237)
Backed out changeset e8a1845876d6 (bug 1123237)
Backed out changeset 714ec40715fa (bug 1123237)
Backed out changeset 5ed952e011c3 (bug 1123237)
Backed out changeset c785df6c0cdf (bug 1123237)
Backed out changeset d69e2d195a24 (bug 1123237)
Backed out changeset 1f328807da1d (bug 1123237)
Backed out changeset a1546857dce9 (bug 1123237)
2015-09-05 13:49:39 -07:00
Kan-Ru Chen
3b78f670d6
Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd
2015-09-06 00:13:26 +08:00
Wes Kocher
52d2ee9c38
Merge m-c to inbound, a=merge
2015-09-04 15:41:19 -07:00
Wes Kocher
990fea44a9
Merge inbound to central, a=merge
2015-09-04 15:34:42 -07:00
Eric Rahm
5aa9ac8be6
Bug 1199400 - Part 2: Add tests for possible nsDeque corner cases. r=froydnj
2015-09-04 15:05:01 -07:00
Andrew McCreight
a65efc2a98
Backed out changeset 351d5f864f9e for not compiling.
2015-09-04 09:52:24 -07:00
Andrew McCreight
24d1ff8801
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-04 09:45:44 -07:00
Andrew McCreight
d0367942b5
Bug 1200795, part 2 - Add memory reporting for CCGraph::mPtrToNodeMap. r=njn
2015-09-04 09:45:44 -07:00
Andrew McCreight
13a193098f
Bug 1200795, part 1 - Eliminate excessive detail from cycle collector graph memory reporting. r=njn
2015-09-04 09:45:44 -07:00
Carsten "Tomcat" Book
03f09cb81b
Merge mozilla-central to fx-team
2015-09-04 16:25:40 +02:00
Mike Hommey
4fa3227fa0
Bug 1201453 - Make TestTArray's test_fallible use array sizes slightly less than 128MB. r=nfroyd
2015-09-04 14:35:53 +09:00
Eric Rahm
1e6d3ba517
Bug 1199400 - Part 1: Use CheckedInt when growing nsDeque capacity. r=froydnj
2015-09-03 13:33:46 -07:00
Eric Rahm
360996f6e7
Bug 1199400 - Part 0: Remove unused nsDequeIterator. r=froydnj
2015-09-04 15:04:58 -07:00
Florian Quèze
d1e3fa6e3a
Bug 1169459 - remove the loadFromJars/jarURIs prefs, r=Mossop.
2015-09-04 11:50:49 +02:00
David Major
b1218b64cb
Bug 1201205 part 2: Restore protection on the nop space separately from the function. r=m_kato
2015-09-04 14:24:05 -04:00
David Major
8449c909d2
Bug 1201205 part 1: Add an AutoVirtualProtect helper class to make the next patch easier. r=m_kato
2015-09-04 14:23:33 -04:00
Terrence Cole
fac1f2836b
Bug 1199843 - Part 3: Strongly type JS::TraceChildren; r=jonco r=mccr8
2015-09-02 11:34:36 -07:00
Ben Kelly
e23c1c8e2b
Bug 1184607 P4 Handle the RequestRedirect mode during service worker interception. r=nsm
...
* * *
Bug 1184607 P4 interdiff 001 fix manual redirect assertion for navigations r=nsm
* * *
Bug 1184607 P4 interdiff 002 dom/worker nits
2015-08-31 14:26:29 -07:00
Alphan Chen
2403a852dd
Bug 1154435 - [nsGZFileWriter] Add one more mode for writing a GZFile (Create/Append). r=froydnj
2015-06-05 11:20:16 +08:00
Nicholas Nethercote
12fec02dfb
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Cervantes Yu
0d4bba27ca
Bug 1166207 - Load preload.js in the Nuwa process. r=khuey
2015-08-28 17:57:44 +08:00
Seth Fowler
29b1327474
Bug 1181907 (Part 1) - Make it possible to use nsGenericHashKey with free functions. r=heycam
2015-08-26 18:19:31 -07:00
Chris Peterson
578cf1b411
Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium
2015-08-25 09:14:38 -07:00
Chris Peterson
db0b826de2
Bug 1197563 - Polyfill __func__ for MSVC 2013 and earlier. r=froydnj
2015-08-20 23:39:18 -07:00
Alphan Chen
82f764dd03
Bug 1154435 - [nsDumpUtil] Refine nsDumpUtils::OpenTempFile to make this function more flexible. r=dhylands
...
- Add one more mode in this function (CREATE/CREATE_UNIQUE)
- export the header file for the usage of other components
2015-06-04 14:47:09 +08:00
Miko Mynttinen
7ac3faa6c3
Bug 1197316 - Remove PR_snprintf calls in xpcom/. r=froydnj
2015-08-22 17:57:52 -07:00
Kyle Huey
9450144d48
Bug 1195755: Don't assert recursion depth sanity on Mac, because there is none. r=me
2015-08-21 19:56:56 -07:00
David Major
9be4a2599a
Bug 1196370 - Remove the clang assembly workaround from bug 1028613. r=ehsan
2015-08-20 14:34:57 -07:00
Nicholas Nethercote
8967f444d6
Bug 1194061 - Implement "system-heap-allocated" reporter for Windows. r=dmajor.
2015-08-19 20:35:17 -07:00
Xidorn Quan
b6f185628d
Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj
2015-08-20 10:30:10 +10:00
Bobby Holley
260a9c6b1f
Bug 1188976 - Improve MozPromise.h comment. r=me DONTBUILD
2015-08-19 17:13:45 -07:00
Honza Bambas
bfda273a99
Bug 1188983 - mozilla::Tokenizer improvements, r=nfroyd
2015-08-19 15:14:25 -07:00
Chris Manchester
3c61f61e98
Bug 1131325 - Move system country code from nsIGfxInfo2 to a more appropriate location. r=aklotz,smichaud
2015-07-28 15:45:34 -07:00
Xidorn Quan
5c730bd6c7
Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj
2015-08-19 11:06:05 -07:00
Nigel Babu
84ef433dd2
Backed out changeset 20c6f74296e2 (bug 1195154) for causing Bug 1196115
2015-08-19 20:43:11 +05:30
Nathan Froyd
5c7a32ed07
Bug 1189829 - fix quadratic behavior in nsConsoleService; r=erahm
2015-08-17 21:05:48 -04:00
Xidorn Quan
1b365c5672
Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj
2015-08-19 09:09:08 +10:00
Bobby Holley
17aa8153b8
Bug 1195867 - Hoist StateWatching and StateMirroring into XPCOM. r=froydnj
2015-08-18 15:37:06 -07:00
Michael Layzell
3f7b8cb09b
Bug 1195415 - Add asciiHostPort field to nsIURI, and use it in the implementation of nsPrincipal::GetOriginForURI, r=bholley
2015-08-18 14:52:24 -04:00
Arnaud Bienner
fe0b5732f1
Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
2015-08-14 00:49:15 +02:00
Bobby Holley
7bf11e5eb5
Bug 1188976 - Hoist MozPromise into xpcom. r=froydnj
2015-08-17 14:54:45 -07:00