Commit Graph

35 Commits

Author SHA1 Message Date
Eric Rahm
ddc8ac650b Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -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
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
b35d1d1aa7 Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg. 2014-08-27 15:47:27 -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
e21c345473 Bug 1027921 - Part 4: Add SizeOf functions. r=njn, r=froydnj 2014-08-04 16:16:09 -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
L. David Baron
eccc6c3bd1 Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08: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
Trevor Saunders
44f4070d4a bug 852379 - remove unneeded prlock.h includes r=Ms2ger 2013-03-16 22:46:40 -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
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
9ae6458637 Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 23:29:02 -05:00
Chris Jones
ecb9597975 Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052 2011-03-31 18:57:38 -05:00
Chris Jones
5dece3352a Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 14:51:19 -05:00
Benjamin Smedberg
a66882514d Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones 2010-02-03 17:17:09 -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