Mike Hommey
8ceb917350
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps
2013-11-19 11:48:10 +09:00
Mike Hommey
bb6779efe3
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Mike Hommey
d7b6f95761
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps
2013-11-19 11:47:14 +09:00
Trevor Saunders
cd02aea365
bug 931792 - only init sCanaryOutputFD once r=bsmedberg
2013-10-29 16:58:09 -04:00
Christian Holler
b88ba8dbad
Bug 829617 - Make access to gTimestamp in HangMonitor atomic. r=froydnj
...
--HG--
extra : rebase_source : d40c8aee4dec4da601d451e29eb84c679ec60e9c
2013-10-29 00:29:00 +01:00
Carsten "Tomcat" Book
f3d4996b70
Merge Mozilla-Inbound to Mozilla-Central
2013-10-25 10:12:00 +02:00
Karl Tomlinson
727bf8ca64
back out 242bb2279283 from bug 928222 on suspicion of causing bugs 930495 930479 930428
2013-10-25 17:40:39 +13:00
Mike Hommey
1d566f7586
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Mike Hommey
61124c1afc
Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps
2013-10-24 08:05:43 +09:00
Karl Tomlinson
47186024e8
b=928222 remove nsThreadPool per-thread event queues r=bsmedberg
...
The way idle nsThreadPool threads wait with a timeout doesn't work well with
shutdown from nsThreadManager.
nsThreadPool doesn't need to use nsIThread for its threads. The nsIThread
interface is not useful for threads running in an nsThreadPool.
The nsIEventTarget on the nsIThreadPool should be used for dispatching events,
not an interface on the individual threads, and the threads don't need an
nsEventQueue because they use the nsEventQueue on the nsThreadPool.
Shutdown of single event threads is easier than running nested event loops for
nsIThreads, avoiding the multilevel nested event loop situations when several
threads finish and are shutdown. While the ThreadFunc is running, a nested
event loop is still used in Shutdown() in case some consumers might need it
and because that is the documented API.
This also simplifies thread creation, avoiding races that could mean there was
temporarily an extra thread or more.
--HG--
extra : transplant_source : %F7%14%16%12%EF%E9%84%19D%26%3C%FE%1F%EC%FF%A3%BAG%C4%F3
2013-10-24 09:31:15 +13:00
Karl Tomlinson
7dbf5c98ba
b=926522 remove unecessary shutdown code from ~nsThreadPool r=bsmedberg
...
While threads are processing their initial runnable, which is the nsThreadPool, it will not be
destroyed. The threads remove themselves from mThreads before returning from Run().
This includes removal of changes from bug 900711.
--HG--
extra : transplant_source : %EF%E9%94L%E9d%F5%99b%09r%CB%024%86%88%BA%EFi%29
2013-10-24 07:21:37 +13:00
Ehsan Akhgari
387a4f7600
Bug 928040 - Remove some prtypes.h inclusions from xpcom/; r=bsmedberg
...
--HG--
extra : rebase_source : 2f238320ba8330a27aa986af1146446dcb5d7128
2013-10-18 20:34:57 -04:00
Birunthan Mohanathas
8931f631a5
Bug 784739 - Switch from NULL to nullptr in xpcom/ (3/3); r=ehsan
2013-10-10 16:42:16 -04:00
Thinker Lee ext:(%2C%20Cervantes%20Yu%20%3Ccyu%40mozilla.com%3E)
d6da7b763f
Bug 771765 - Support template content process, part 6: support re-creation of the threads created in the template process. r=khuey, r=jorendorff
...
The threads that are frozen/recreated include:
* ImageBridgeChildThread.
* Image decoding thread pool.
* IPC thread (checkpointed, but not frozen).
* GC Helper thread.
* XPC runtime watchdog thread.
* Socket transport service thread/thread pool.
* Memory pressure watcher.
* Timer thread.
* DOM promise worker.
2013-06-03 18:14:42 +08:00
Adam Roach [:abr]
de9fad68d9
Bug 842549 - Part 5: Fix slots cleanup when VcmSIPCCBinding is destroyed r=ekr
2013-09-25 19:58:16 -05:00
Ehsan Akhgari
276e4b787c
Bug 919341 - Minimize the #includes in xpcom/ IDL files; r=bsmedberg
2013-09-23 13:29:27 -04:00
Trevor Saunders
946e5b4a08
bug 915566 - rm makefiles in xpcom/ r=glandium
2013-09-12 08:15:51 -04:00
Chris Peterson
30c11b883c
Bug 905221 - sizeof(nsEventQueue::Page) should be a power of two to avoid heap allocation slop. r=bsmedberg
2013-09-02 19:30:19 -07:00
Robert O'Callahan
33cdb42706
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Mike Hommey
f1cf3b4238
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Gabriele Svelto
c8251ce6f3
Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan
2013-08-24 08:12:51 +02:00
Ms2ger
944d17423c
Revert this CLOSED TREE to changeset 4d3e221584a0.
2013-08-24 13:31:48 +02:00
Gabriele Svelto
1d1671942d
Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan
2013-08-24 08:12:51 +02:00
Nathan Froyd
3be905a68a
Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg,jlebar
2013-08-22 11:14:42 -04:00
Ben Turner
daf48f83c0
Bug 900711, fix bustage on CLOSED TREE
2013-08-22 09:48:43 -07:00
Ben Turner
7babe734dc
Bug 900711 - '~nsIThreadPool can run the event loop if shutdown has not been called'. r=ehsan.
2013-08-02 13:19:36 -07:00
Ms2ger
4922ccbc0a
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
c3e345584c
Bug 883284 - Part f: Move LIBXUL_LIBRARY into moz.build (p-z); r=glandium
2013-08-22 08:56:01 +02:00
Ryan VanderMeulen
e0ea2a7e48
Backed out changeset d389df23ffc9 (bug 884281) for OSX crashes.
...
CLOSED TREE
2013-08-21 13:27:00 -04:00
Nathan Froyd
f9188e7564
Bug 907355 - fix warning about set-but-not-used variable in nsTimerImpl.cpp; r=ehsan
2013-08-20 15:22:27 -04:00
Nathan Froyd
b490da9c25
Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg
2013-08-20 11:21:31 -04:00
Kyle Huey
e9e214aa0e
Bug 901630: Remove support for the cc thread. r=mccr8
2013-08-13 10:45:32 -07:00
Karl Tomlinson
00919a0fdf
b=900337 Document that nsIThreadPool::Shutdown() will run the event loop r=ehsan
...
--HG--
extra : transplant_source : %93%D8%96%C2%3A%60%7E%B9%96U%CC%C0%21e%A6%D2%BD%DD%E3-
2013-08-05 14:58:41 +12:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Joshua Cranmer
7b9a04da79
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
03b669f709
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
...
--HG--
extra : rebase_source : d54f6973e3ff859207115013e8361781769ffc76
2013-07-18 21:31:26 -05:00
Nicolas B. Pierron
f5e41e585a
Bug 876029 - Add Missing MPL header. r=jlebar DONTBUILD
2013-07-15 15:25:07 -07:00
Benoit Girard
5b43ee14ca
Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium
2013-07-12 08:56:54 -04:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Nicolas B. Pierron
a0ecacf230
Bug 876029 - Make Gonk memory pressure by-pass the event queue. r=jlebar
2013-07-09 13:47:15 -07:00
Ryan VanderMeulen
11e25eb4b6
Backed out changeset 1c6223f7c74f (bug 876029) for Android armv6 mochitest-1/3 crahes.
2013-07-07 21:18:36 -04:00
Nicolas B. Pierron
357fed3c71
Bug 876029 - Make Gonk memory pressure by-pass the event queue. r=jlebar
2013-07-07 16:02:58 -07:00
Arnaud Sourioux
9256d2b930
Bug 744115 - Disallow dispatching events after threads shut down. r=bsmedberg
2013-07-07 16:23:43 -04:00
Michal Novotny
6478173231
Bug 886791 - Deadlock can occur if nsThreadPool::Dispatch() is called under lock, r=bsmedberg
2013-06-26 01:18:39 +02:00
Brian O'Keefe
5f8b5163e8
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Trevor Saunders
0230640bc6
bug 877850 - fix static constructors in xpcom/ r=jlebar
2013-05-30 17:20:02 -04:00
Aaron Klotz
5cf638ca73
Bug 744836: Modify nsTimerEvent to hold its timer reference until the nsTimerEvent itself is destroyed. r=bsmedberg,ehsan
2013-05-30 10:19:18 -06:00
Julian Seward
004a71f006
Bug 872496 - Allow early registration of stack tops, to improve native unwind quality. r=bgirard.
2013-05-28 14:03:38 +02:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Chris Peterson
81b2f45d57
Bug 873960 - Avoid unnecessary idle thread notifications when changing thread limits. r=bsmedberg
2013-05-16 09:02:46 -07:00
Ted Mielczarek
110919af49
bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium
2013-05-16 09:33:26 -04:00
Maria Grazia Alastra
d645d2e812
Bug 331566 - Change idl interfaces to use @throws instead of @return NS_. r=bsmedberg
2013-05-16 08:26:55 -04:00
Vladan Djeric
09e2368b6a
Bug 867313: 'crash on hang' doesn't always trigger. r=ehsan
2013-04-30 18:39:16 -04:00
Ben Turner
0514a30d13
Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey.
2013-03-15 23:58:50 -07:00
Ben Turner
d2d94d205c
Backout bug 861287 for gcc build failures.
2013-04-25 08:30:28 -04:00
Ben Turner
19f1c29c69
Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey.
2013-03-15 23:58:50 -07:00
Aaron Klotz
1fa45885ed
Bug 744836: Adds null checks for mEventTarget in nsTimerImpl. r=bsmedberg
2013-04-23 11:24:20 -06:00
David Rajchenbach-Teller
a463ed5806
Bug 724368 - Expose the maximum number of threads. r=dougt
2013-04-19 07:54:18 -04:00
Mike Shal
77cdb6567d
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Jason Duell
deacfc8702
Bug 792920 - clarify thread-safe use of nsITimer v2. r=bz DONTBUILD
2013-04-08 15:20:00 -07:00
Jason Duell
d787dc2549
Bug 792920 - Update nsITimer.idl comments re: off main-thread use. r=mcmanus DONTBUILD
2013-04-04 11:36:07 -07:00
Chris Peterson
7b51735db0
Bug 579517 - Remove some PRBools. r=ehsan
2013-04-04 10:28:18 -07:00
Ehsan Akhgari
124e2f7dca
Bug 579517 follow-up: Remove NSPR types that crept in
2013-04-02 20:59:27 -04:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Benjamin Smedberg
a8fc98840f
Bug 853998 - Add a common "SyncRunnable" class which dispatches events totally synchronously, avoiding event loop spinning or automatic promotion of this event to a nsThread, r=bsmedberg
2013-03-26 09:11:00 -07:00
Benoit Girard
fc10a7cfe4
Bug 851611 - Part 3: Rename headers. r=jrmuizel
...
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 6ea7c660764a4390cdd8dd91561fff1d7bad6035
2013-03-18 15:25:50 +01:00
Benoit Girard
9d12529d78
Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
...
--HG--
extra : rebase_source : f76accc3d3dd86c75cb3e9750734f23ec9c29941
2013-03-16 00:47:02 -04:00
Mike Shal
c2a9341a2e
Bug 852534 - Remove GRE_MODULE from Makefile.in; r=gps
2013-03-21 08:41:00 -07:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Ed Morley
b2109c458f
Backed out changeset c75481a07302 (bug 851611)
2013-03-18 14:10:35 +00:00
Ed Morley
2b1775b4e9
Backed out changeset d195190adc48 (bug 851611)
...
--HG--
rename : tools/profiler/GeckoProfiler.h => tools/profiler/sampler.h
rename : tools/profiler/GeckoProfilerImpl.h => tools/profiler/sps_sampler.h
2013-03-18 14:10:30 +00:00
Benoit Girard
664cf994b4
Bug 851611 - Part 3: Rename headers. r=jrmuizel
...
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 552fe1d3ff61d15b264aaf86f7c8cb4f4eff69d1
2013-03-18 14:41:02 +01:00
Benoit Girard
c4c6a0ddf5
Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
...
--HG--
extra : rebase_source : 3032aaf7e50cdf9c350da688ec34e50a695fc7ca
2013-03-16 00:47:02 -04:00
Nicholas Nethercote
2702cf9b88
Bug 847248 (part 10) - Rewrite TimerEventAllocator and remove nsFixedSizeAllocator. r=bz,ehsan; sr=bsmedberg.
...
--HG--
extra : rebase_source : aaa9c2d0ffd268e8f1b9184e8230b1e7932f014d
2013-03-06 14:29:30 -08:00
Daniel Holbert
b76c363e13
Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg
2013-03-15 10:52:10 -07:00
Avi Halachmi
c113be7b48
Bug 590422: Remove delay line filter from timer thread. r=bz
2013-02-20 20:21:09 +02:00
Mike Shal
e9f8bc0fbd
Bug 818246 - Part 7: Move XPIDL_MODULE to moz.build; rs=gps
2013-03-11 22:00:00 -07:00
Gregory Szorc
7bb3ee056b
Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
...
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Nicholas Nethercote
cc8a28de9e
Bug 847248 (part 2) - Use a smaller chunk size in TimerEventAllocator. r=bz.
2013-03-03 18:50:06 -08:00
Ehsan Akhgari
3b20d99b2b
Bug 799142 - Make sure that the allocator for nsTimerEvent objects stays around long enough to deallocate all outstanding objects of that type; r=bsmedberg
2013-03-04 19:04:59 -05:00
Ehsan Akhgari
5eb0209309
Backed out 2 changesets (bug 799142) because of memory leaks
...
Backed out changeset a0cf0252cee4 (bug 799142)
Backed out changeset 7b1bb476bd8d (bug 799142)
2013-03-04 15:48:04 -05:00
Ehsan Akhgari
1b5b95cafb
Bug 799142 follow-up: build bustage fix
...
landed on a CLOSED TREE
2013-03-04 14:41:54 -05:00
Ehsan Akhgari
1190c8b8d6
Bug 799142 - Make sure that the allocator for nsTimerEvent objects stays around long enough to deallocate all outstanding objects of that type; r=bsmedberg
2013-03-04 14:24:05 -05:00
Gregory Szorc
a8e6b873d4
Bug 784841 - Part 18ν: Convert /xpcom; f=Ms2ger rs=ted
2013-02-25 13:20:02 -08:00
Ehsan Akhgari
05344173dd
Fix the documentation of TimerEventAllocator threading expectations, no bug, DONTBUILD
2013-02-18 21:13:26 -05:00
Boris Zbarsky
002618e54d
Bug 618479 part 2. Use binary, not linear, search to determine timer insertion locations. r=brendan
2013-02-13 10:11:53 -05:00
Chris Peterson
539e783497
Bug 839962 - Part 2: Replace some XPCOM thread NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
2013-02-07 21:54:20 -08:00
Chris Peterson
481aeddb5f
Bug 839962 - Part 1: Replace some XPCOM refcount NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
2013-02-07 20:50:05 -08:00
Nicholas Nethercote
0ea79c11c5
Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron.
2012-12-20 21:31:57 -08:00
Gabriele Svelto
c95ca6c01f
Bug 814771 - Add a cancelable runnable and use it to cancel a pending memory minimization procedure when an application is brought to the foreground r=jlebar
2012-12-11 19:13:29 +01:00
Theo Chevalier
2e90bf0940
Bug 699806 - Enable Telemetry by default on Nightly and Aurora channels (Desktop), r=mak77
2012-12-08 18:41:23 +01:00
Bas Schouten
b8bd2ee92a
Bug 816117 - Part 1: Add the ability to pass around a windows Thread Context to StackWalkMain64. r=ehsan
2012-12-08 06:15:21 +01:00
Rafael Ávila de Espíndola
f6513ba12c
Bug 808699 - Change the wire format for hang reports. r=vladan.
2012-11-20 09:45:14 -05:00
Brian R. Bondy
a0ee1a91ab
Bug 795887 - Mirror existing sleep notification handling with process suspend notification handling. r=bsmedberg
2012-11-09 10:34:10 -05:00
Nathan Froyd
bd55a07f0e
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04:00
Ehsan Akhgari
f117c7a7b0
Backed out 2 changesets (bug 579517)
...
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608
Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517)
2012-10-25 11:48:19 -04:00
Makoto Kato
65470ba401
Bug 803476 - RunProcess may leak memory if ShellExecuteEx is failure. r=bsmedberg
2012-10-24 13:46:52 +09:00