Xidorn Quan
feddf61313
Bug 1186745 part 6 - Fix event leak when using NS_DispatchToCurrentThread. r=froydnj
2015-10-06 13:00:59 +11:00
Xidorn Quan
da65e8e6ab
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
1779ac7e2a
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
c6c1d581b7
Bug 1186745 part 6 - Fix event leak when using NS_DispatchToCurrentThread. r=froydnj
2015-10-03 00:18:24 +10:00
Xidorn Quan
b5e0f10204
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
Phil Ringnalda
5c7e6f4c0a
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
ecdf1abdf5
Bug 1186745 part 6 - Fix event leak when using NS_DispatchToCurrentThread. r=froydnj
2015-09-29 09:28:22 +10:00
Xidorn Quan
88de51e776
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-09-29 09:28:22 +10:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Randell Jesup
c01c9be324
Bug 1155059: Patch 4 - invoke NS_ASSERTION if DispatchToMainThread fails to get MainThread ptr r=froydnj
2015-07-09 23:21:46 -04:00
Randell Jesup
9212636903
Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
...
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Cervantes Yu
f244086223
Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307).
2015-05-19 14:31:25 +08:00
Carsten "Tomcat" Book
35c8f985c6
Backed out changeset 4d2839eea957 (bug 970307)
2015-05-19 11:44:27 +02:00
Cervantes Yu
f56cb02c7d
Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307).
2015-05-19 14:31:25 +08:00
Cervantes Yu
d3b1aa5c05
Backed out 2 changesets (bug 1138620)
...
Backed out changeset e60b4b01c05d (bug 1138620)
Backed out changeset 52d49dd25d6d (bug 1138620)
2015-04-24 15:05:44 +08:00
Cervantes Yu
b5f24084e9
Bug 1138620 - Part 1: Allow binary modules to create unmonitored threads that doesn't keep the Nuwa process from stabalization. r=nfroyd
2015-04-21 18:23:09 +08:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Chih-Kai (Patrick) Wang
67d4ec2066
Bug 970307: Part 1: Report status of each thread to find when all the threads are idle. r=nfroyd
2014-12-18 17:00:39 +08:00
Ryan VanderMeulen
59b00f5e6f
Backed out changesets 9beb53e53951, 4420bb4e5e7c, de1da65301a8, and cd9c2aaf1343 (bug 970307) for causing frequent B2G debug mochitest-11 crashes.
2014-11-24 17:18:27 -05:00
Patrick Wang (Chih-Kai Wang)
9e5e0761e3
Bug 970307: Part 1: Report status of each thread to find when all the threads are idle. r=nfroyd
2014-11-24 15:21:52 +08:00
Ehsan Akhgari
6084be21ce
Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj
2014-07-29 20:43:56 -04:00
Andrew McCreight
a7876d704a
Bug 1036629 - Take a deathgrip on the runnable passed to NS_DispatchToCurrentThread. r=bsmedberg
...
This will prevent a leak of the runnable if it is passed in with a refcount of zero and the dispatch fails.
2014-07-15 14:29:14 -07:00
Benoit Jacob
74fee105cf
Bug 1033358 - Make NS_IsMainThread use its own TLS so it's always correct, from early init to exit time - r=bsmedberg
2014-07-04 06:34:15 -04:00
Benoit Jacob
f2b3eb970f
Bug 1033358 - Fix linking of the AVOID_NSPR build - r=bsmedberg
2014-07-04 06:33:56 -04:00
Ryan VanderMeulen
094b628a0f
Backed out 10 changesets (bug 1033358, bug 774388, bug 1028383) for causing frequent shutdown crashes on a CLOSED TREE.
...
Backed out changeset a54b05c9e4a1 (bug 1028383)
Backed out changeset 37985f79e0c2 (bug 774388)
Backed out changeset d07521729077 (bug 774388)
Backed out changeset 9f14b17f358c (bug 774388)
Backed out changeset 2d347d6aa9bc (bug 774388)
Backed out changeset 99581dfb5ec4 (bug 774388)
Backed out changeset 2532e22d6135 (bug 774388)
Backed out changeset 719844108f1a (bug 774388)
Backed out changeset 7829c78348a4 (bug 1033358)
Backed out changeset c571df9a85de (bug 1033358)
2014-07-03 20:37:05 -04:00
Benoit Jacob
00469e4ac1
Bug 1033358 - Make NS_IsMainThread use its own TLS so it's always correct, from early init to exit time - r=bsmedberg
2014-07-03 14:53:24 -04:00
Benoit Jacob
60a20c83a6
Bug 1033358 - Fix linking of the AVOID_NSPR build - r=bsmedberg
2014-07-03 14:53:22 -04:00
Benoit Jacob
fcd3b40972
Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd
2014-06-30 18:11:53 -04:00
Wes Kocher
8d34dc1b3b
Backed out 4 changesets (bug 1028588) for build bustage
...
Backed out changeset 13a8bae671ca (bug 1028588)
Backed out changeset 19a19833f1d6 (bug 1028588)
Backed out changeset d5fae80054de (bug 1028588)
Backed out changeset 5942ad3859b8 (bug 1028588)
2014-06-30 15:50:19 -07:00
Benoit Jacob
6d0ba9e6eb
Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd
2014-06-30 18:11:53 -04:00
Birunthan Mohanathas
8a4a4c8465
Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj
2014-06-30 08:39:45 -07:00
Birunthan Mohanathas
ce774b1fa6
Bug 1022456 - Convert xpcom/glue/ to Gecko style. r=froydnj
2014-06-26 18:35:39 -07:00
Birunthan Mohanathas
1ebdb921a5
Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan
2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Benjamin Smedberg
29d63f056d
Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric
2013-11-19 16:27:37 -05:00
Andrew McCreight
b4bed988e6
Bug 923486, part 2 - Define NS_IsMainThread out-of-line in ASAN builds. r=ehsan
2013-10-03 11:58:41 -07:00
Andrew McCreight
af554389b2
Bug 923486, part 1 - Harmonize ordering of definitions of NS_IsMainThread(). r=ehsan
2013-10-17 06:24:30 -07:00
Masatoshi Kimura
78cf6a13fe
Bug 925599 - Introduce version test functions using VerifyVersionInfo(). r=bbondy
2013-10-19 03:14:31 +09:00
Joshua Cranmer
1c073a2540
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
2013-07-18 21:31:26 -05:00
Boris Zbarsky
f727ec299c
Bug 827654. Actually QI to interfaces we implement in nsCancelableRunnable. r=smaug
2013-01-08 09:01:30 -05:00
Gabriele Svelto
7c53cacec2
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
Jacek Szpot
09f9b9a1c3
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
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 "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian R. Bondy
2713d66715
Bug 773518 - Platform code for lowering IO prioritization. r=bsmedberg
2012-07-25 10:25:08 -04:00
Ehsan Akhgari
55c8710c75
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (remaining XPCOM parts); r=bsmedberg
2012-06-12 23:08:53 -04:00
Honza Bambas
1415b7fdef
Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium
2012-06-12 19:06:20 +02:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00