Commit Graph
50 Commits
Author SHA1 Message Date
Benoit Girard ef41ed062b Bug 1172216 - Move nsStackwalk to mozglue. r=glandium 2015-06-10 16:32:45 -04:00
Randall Barker 2ee4f9a372 Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC. r=nfroyd 2015-04-03 15:52:00 +02:00
Wes Kocher b4465e0af8 Backed out changeset 0f5799df920b (bug 1093934) for various test failures CLOSED TREE 2015-04-02 13:42:34 -07:00
Randall Barker 762a6748a9 Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC r=froydnj 2015-04-02 12:12:37 -07: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
Nicholas Nethercote 0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote 40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Patrick Wang (Chih-Kai Wang) 9929bd282e Bug 1105215: fix build break when MOZ_CALLSTACK_DISABLED is not defined. r=njn 2014-11-27 13:52:56 +08:00
James Willcox 59f2109599 Bug 1085662 - Don't crash if there is no deadlock detector when destroying BlockingResourceBase r=froydnj 2014-10-21 10:16:31 -05:00
Nicholas Nethercote ca7b761d18 Bug 1062709 (part 2, attempt 2) - Clean up stack printing and fixing. r=dbaron. 2014-09-01 22:56:05 -07:00
Nicholas Nethercote aba5072dce Bug 1062709 (part 1, attempt 2) - Add a frame number argument to NS_WalkStackCallback. r=dbaron. 2014-09-10 21:47:01 -07:00
Ed Morley 1c977f5017 Backed out changeset a0b82c954206 (bug 1062709) for Windows mochitest 5 hangs 2014-10-03 15:06:16 +01:00
Ed Morley e379fd79fc Backed out changeset 7a1b7d7eba12 (bug 1062709) 2014-10-03 15:05:26 +01:00
Nicholas Nethercote 0d0952d622 Bug 1062709 (part 2) - Clean up stack printing and fixing. r=dbaron. 2014-09-01 22:56:05 -07:00
Nicholas Nethercote 52aecfdcd6 Bug 1062709 (part 1) - Add a frame number argument to NS_WalkStackCallback. r=dbaron. 2014-09-10 21:47:01 -07:00
Nicholas Nethercote f4dc45968a Bug 1061385 - Remove |Writer| parameter from CodeAddressService. r=mccr8. 2014-09-01 20:03:06 -07:00
Birunthan Mohanathas 6e9ec233ed Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Eric Rahm e6db18538f Bug 1050445 - Part 5: Print stacks. r=mccr8 2014-08-13 13:06:07 -07:00
Eric Rahm b2c3c3ec4b Bug 1050445 - Part 4: Take stack snapshots. r=njn 2014-08-13 12:37:40 -07:00
Eric Rahm 3a6e385f03 Bug 1050445 - Part 3: Add stack trace holders. r=froydnj 2014-08-13 12:37:31 -07:00
Eric Rahm c5f91b9c72 Bug 1050445 - Part 2: Add ClearAcquisitionState. r=froydnj 2014-08-13 12:37:05 -07:00
Eric Rahm 6aa7bce171 Bug 1050445 - Part 1: Add AcquisitionState typedef. r=froydnj 2014-08-13 12:36:41 -07:00
Eric Rahm ba37830040 Bug 1049051 - Part 5: Make sDeadlockDetector access internal. r=froydnj 2014-08-12 11:44:04 -07:00
Eric Rahm f968851f05 Bug 1049051 - Part 4: Make PrintCycle internal. r=froydnj 2014-08-12 11:43:27 -07:00
Eric Rahm 6ba2ac3488 Bug 1049051 - Part 2: Remove DeadlockDetectorEntry. r=froydnj 2014-08-12 11:42:28 -07:00
Eric Rahm 1d97dffda9 Bug 1049051 - Part 1: Remove ResourceAcquisition. r=froydnj 2014-08-12 11:42:10 -07:00
Eric Rahm de64f765bf Bug 1049068 - Part 5: Remove unused CallStack params. r=froydnj 2014-08-08 11:43:58 -07:00
Eric Rahm 0287307e37 Bug 1049068 - Part 2: Store acquisition state as a bool instead of a CallStack. r=froydnj 2014-08-08 11:43:26 -07:00
Eric Rahm d79e5491b9 Bug 1049068 - Part 1: Remove callstack printing. r=froydnj 2014-08-08 11:43:19 -07:00
Eric Rahm 51f31755b0 Bug 1027921 - Part 8: Remove dead entries. r=froydnj, r=cjones 2014-08-04 16:16:56 -07: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 fd86bf4972 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Viktor Stanchev 66b109581f Bug 963158 - Profiler shouldn't sample sleeping threads multiple times. r=bgirard,roc,bent,froydnj 2014-03-28 16:08:22 -04:00
Ryan VanderMeulen 5a99fa229f Backed out changeset 4887ddabba31 (bug 939231) for mochitest hangs.
CLOSED TREE
2013-11-21 09:39:38 -05:00
Ehsan Akhgari 77997d5494 Bug 939231 - Stop requiring trace-malloc for the deadlock detector; r=bent
The existing deadlock detector code uses the trace-malloc stack walking
facilities, which is problematic for a few reasons.

1. It is only available in builds with --enable-trace-malloc, which is
   not in the default build configuration.
2. It tries to capture a symbolicated stack trace every time that a lock
   is acquired or released, which is really slow.

This patch changes the deadlock detector to use the XPCOM stack walking
and symbolification facilities, and avoids the symbolification until the
point where we need to print out the call stack, which makes the
deadlock detector a lot faster than it currently is in trace-malloc
builds.
2013-11-21 07:43:23 -05:00
David Zbarsky e66ffce5db Remove some null-checks due to infallible new, no bug, r=me 2013-06-26 14:04:13 -07:00
Justin Lebar 1516b8807f Bug 832609 - Add mozilla::OffTheBooksMutex, which is just like mozilla::Mutex, except it's not leak-checked. r=khuey 2013-05-24 13:10:47 -04:00
Randell Jesup 3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04: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
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Chris Jones 4b3bb04878 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc 2011-04-29 14:21:57 -05:00
Chris Jones 968193d859 Bug 646259: Some trivial formatting fixes to deadlock detector output. r=bsmedberg 2011-03-31 14:51:19 -05:00
Chris Jones 20eb03ae16 bug 491977: fix "leak" of deadlock detector statics. r=bsmedberg 2009-06-16 12:36:44 -07:00
Chris Jones 27f03a979f Bug 456272: deadlock detector improvements 2009-05-04 21:57:15 -07:00
Chris Jones 5cd39f36b0 Backed out changeset 3deeb3c83c77 2009-05-02 21:13:57 -07:00
Chris Jones 216af6e5ad Bug 456272: deadlock detector improvements r=brendan 2009-05-02 20:54:05 -07:00
Chris Jones 3fa45fa574 Bug 58904: Create strong types for synchronization primitives. r=bsmedberg. 2009-04-18 18:54:23 -07:00