Joshua Cranmer
08036d15e9
Bug 935789, part 1: Kill most uses of prbit.h, r=ehsan
...
--HG--
extra : rebase_source : 4c44e60c72e0ece3cea7ed1cf79079bd2a1b6487
2013-11-12 18:22:38 -06:00
Nicholas Nethercote
7005c68a5b
Bug 933605 (part 2) - Don't declare all vars at the top of functions in pldhash.cpp. r=jorendorff.
...
--HG--
extra : rebase_source : 53da17b46bd986ceefbc66f23e43d2f5b7290fad
2013-10-31 22:33:29 -07:00
Nicholas Nethercote
14b48dc0f4
Bug 933605 (part 1) - Remove DEBUG_XXXbrendan-only code. r=jorendorff.
...
--HG--
extra : rebase_source : 8ebc751e246cf133f899a8563e75f9bff77d9eda
2013-10-31 22:30:45 -07:00
Nicholas Nethercote
8240e2f282
Bug 933074 - Allow a pldhash to be reasonably overloaded if it cannot be grown further. r=jorendorff.
...
--HG--
extra : rebase_source : 0760f78d5332b4791899c1db649493eeca10b978
2013-10-30 18:22:31 -07:00
Nicholas Nethercote
9726ac23f3
Bug 815467 - Store pldhash's recursionLevel in a better place, so that debug and non-debug pldhashes take up the same amount of memory. r=dbaron.
...
--HG--
extra : rebase_source : c3c928f6706be4ef55620f05320050991a657a6c
2013-10-30 15:10:06 -07:00
Nicholas Nethercote
0d483a574b
Bug 927705 (part 2b) - Never overload pldhash past 75% full, because performance plummets near the end. r=jorendorff.
...
--HG--
extra : rebase_source : 7d3a0594e49ceb89550861debca03a40d3e479c1
2013-10-21 15:44:01 -07:00
Nicholas Nethercote
6b7f6c5f22
Bug 927705 (part 2a) - Increase pldhash's max capacity from 1<<23 to 1<<26, and protect against uint32_t overflow when computing storage size. r=jorendorff.
...
--HG--
extra : rebase_source : 9293ec75e5ba8ad416d66ad6bf0c0788c0d35b02
2013-10-21 15:36:45 -07:00
Nicholas Nethercote
875220476b
Bug 927705 (part 1) - Remove PL_DHashTableSetAlphaBounds() and the supporting machinery. r=jorendorff.
...
--HG--
extra : rebase_source : 0b97b3276ec91d417fcfc12fe871d93b0cbd2263
2013-10-20 20:17:48 -07:00
Birunthan Mohanathas
4dce3f3fa6
Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan
2013-10-10 16:41:39 -04:00
Catalin Iacob
4f03e5bb1a
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Nicholas Nethercote
b7f77bbe0f
Bug 884649 (part 2) - Remove jsdhash.{h,cpp}. r=luke.
2013-06-19 16:57:11 -07:00
Kyle Huey
2fb58dfb85
Bug 714453: Make pldhash assertions fatal. r=dbaron
2013-03-14 09:24:52 -07:00
Mats Palmgren
93d3d7b2b4
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
2013-01-15 13:22:03 +01:00
Jacek Szpot
0b35b0e3d8
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Abhishek Potnis
2509c81393
Bug 795511: Removed usages of PR_BIT and PR_BITMASK from the tree; r=ehsan
2012-10-20 07:31:43 +05:30
foudfou
d72827c0aa
Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
...
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).
--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02: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
Ms2ger
5a4f28eb7b
Bug 780387 - Part a: Stop using PRPtrdiff; r=bsmedberg
2012-08-09 09:09:31 +02:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Kyle Huey
f7749577c7
No Bug: Shut pldhash up for the 'probably' case. rs=bz
2012-03-16 10:09:14 -07:00
Justin Lebar
0dbaf73150
Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
...
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Justin Lebar
5816447226
Bug 729952 - Part 2: Use a better hash function in nsCRT, nsTHashtable, and pldhash. r=bz
2012-03-02 17:20:44 -05:00
Nicholas Nethercote
a7ad4ef70e
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Ed Morley
562d844eab
Backout b02402b95e5c (bug 708277) for build failures on all platforms
2011-12-22 11:07:12 +00:00
Thomas Prip Vestergaard
168dd4330b
Bug 708277 - Replace PR_MAX with NS_MAX. r=roc
2011-12-22 11:47:59 +01:00
Nicholas Nethercote
8f335f567c
Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
...
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Nicholas Nethercote
587382cea2
Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky
2011-12-08 21:01:52 -08:00
Nicholas Nethercote
6c8107ba0c
Bug 704723 - Add memory reporter for XPConnect. r=mrbkap.
2011-12-05 14:24:28 -08:00
Nicholas Nethercote
f102556f32
Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz.
2011-11-27 19:03:14 -08:00
Ehsan Akhgari
2a602a5685
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
Justin Lebar
72783f7f69
Bug 682437 - Add memory reporter for History::mObservers. r=bz
...
--HG--
extra : rebase_source : f280a6beefd32319816ff8720f7bf65c04343b1e
2011-09-14 17:37:45 -07:00
Michael Wu
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jacek Caban
6f8d9b5235
Bug 680868 - pldhash.cpp fails to compile on mingw-w64 r=benjamin
2011-09-09 15:07:22 +02:00
Mike Hommey
c06a2320b0
Bug 675618 - Compile pldhash as C++. r=bsmedberg
...
--HG--
rename : xpcom/glue/pldhash.c => xpcom/glue/pldhash.cpp
2011-08-09 09:06:37 +02:00