Commit Graph

30 Commits

Author SHA1 Message Date
Eric Rahm
dc49a65472 Bug 1050445 - Part 4: Take stack snapshots. r=njn
--HG--
extra : rebase_source : 0a8ec331cc320c4a6b8289824c3bc1d84a571309
2014-08-13 12:37:40 -07:00
Eric Rahm
4f0eebfefb Bug 1050445 - Part 3: Add stack trace holders. r=froydnj
--HG--
extra : rebase_source : b815025455a60cc321c9003544bab1fb6281f856
2014-08-13 12:37:31 -07:00
Eric Rahm
525c4f41a3 Bug 1050445 - Part 2: Add ClearAcquisitionState. r=froydnj
--HG--
extra : rebase_source : 0900c1663a9b06bbc68d757f20182513ceb4c35e
2014-08-13 12:37:05 -07:00
Eric Rahm
eb0cc8edce Bug 1050445 - Part 1: Add AcquisitionState typedef. r=froydnj
--HG--
extra : rebase_source : 8c14b4181f022ef739cefc7e97689de1c7ec239c
2014-08-13 12:36:41 -07:00
Eric Rahm
b021cc23d4 Bug 1049051 - Part 5: Make sDeadlockDetector access internal. r=froydnj
--HG--
extra : rebase_source : ea7ee17679ca9d616c56376d7360852c37a19249
2014-08-12 11:44:04 -07:00
Eric Rahm
3060d15fdf Bug 1049051 - Part 4: Make PrintCycle internal. r=froydnj
--HG--
extra : rebase_source : 594237c0e3e738078a9e571d9515c6feb0fd7bed
2014-08-12 11:43:27 -07:00
Eric Rahm
e98b60a3f8 Bug 1049051 - Part 2: Remove DeadlockDetectorEntry. r=froydnj
--HG--
extra : rebase_source : e87b5b20130508953360b367c76b4d00338f2cdc
2014-08-12 11:42:28 -07:00
Eric Rahm
beea70ce80 Bug 1049051 - Part 1: Remove ResourceAcquisition. r=froydnj
--HG--
extra : rebase_source : 86bc896f9c2833996c4c5eebcc034acbadedbd4a
2014-08-12 11:42:10 -07:00
Eric Rahm
4f473fd7b2 Bug 1049068 - Part 5: Remove unused CallStack params. r=froydnj
--HG--
extra : rebase_source : bb83004815186347253090a334b97f1587997a38
2014-08-08 11:43:58 -07:00
Eric Rahm
138b553173 Bug 1049068 - Part 2: Store acquisition state as a bool instead of a CallStack. r=froydnj
--HG--
extra : rebase_source : 5e182b5261bc80f8df3f77040fa4bfcfe9839ffd
2014-08-08 11:43:26 -07:00
Eric Rahm
05f6577110 Bug 1049068 - Part 1: Remove callstack printing. r=froydnj
--HG--
extra : rebase_source : 3f672ee2c07ca17721543e61b010dc000ff4d9a1
2014-08-08 11:43:19 -07:00
Eric Rahm
ca6ad1476e Bug 1027921 - Part 4: Add SizeOf functions. r=njn, r=froydnj 2014-08-04 16:16:09 -07:00
Birunthan Mohanathas
0c931675da Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj 2014-06-30 08:39:45 -07:00
Birunthan Mohanathas
c6232dcfe0 Bug 1022456 - Convert xpcom/glue/ to Gecko style. r=froydnj 2014-06-26 18:35:39 -07:00
L. David Baron
4f04bcdc57 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
6a90626b1d Backed out changeset 4887ddabba31 (bug 939231) for mochitest hangs.
CLOSED TREE
2013-11-21 09:39:38 -05:00
Ehsan Akhgari
2524d4cb55 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
7b5cc7e54d bug 852379 - remove unneeded prlock.h includes r=Ms2ger 2013-03-16 22:46:40 -04:00
Ehsan Akhgari
0fd9123eac 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
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Chris Jones
ed22df8f64 Bug 556214, parts 1 and 1.1: Rename Monitor to ReentrantMonitor and fix existing Monitor users. r=roc
--HG--
rename : xpcom/glue/Monitor.h => xpcom/glue/ReentrantMonitor.h
2011-04-29 14:21:57 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
0bb511a3d7 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
a75fb12531 Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052 2011-03-31 18:57:38 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
cc8b4c9c6c 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
30bd4e4e51 Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones
--HG--
extra : rebase_source : cab356b862a66fb7f5955b1f936944f2395bba3c
2010-02-03 17:17:09 -05:00
Chris Jones
1c0eb2d506 bug 491977: fix "leak" of deadlock detector statics. r=bsmedberg 2009-06-16 12:36:44 -07:00
Chris Jones
8a3e35ae54 Bug 456272: deadlock detector improvements 2009-05-04 21:57:15 -07:00
Chris Jones
0023bdaa7d Backed out changeset 3deeb3c83c77 2009-05-02 21:13:57 -07:00
Chris Jones
d2b61202f4 Bug 456272: deadlock detector improvements r=brendan 2009-05-02 20:54:05 -07:00
Chris Jones
002151e9b2 Bug 58904: Create strong types for synchronization primitives. r=bsmedberg. 2009-04-18 18:54:23 -07:00