Chris Peterson
|
db45e51be4
|
Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8
|
2015-09-07 23:56:16 -07:00 |
|
Birunthan Mohanathas
|
b50c6a17fa
|
Bug 968520 - Explicitly specify the allocator for nsTArray_base functions. r=froydnj
|
2015-05-18 13:50:34 -07:00 |
|
Matt Woodrow
|
ab35079e24
|
Bug 1156966 - Avoid writing 0's to mEmptyHdr in nsTArray since it triggers TSan warnings. r=nfroyd
|
2015-04-28 17:57:15 +12: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 |
|
Nicholas Nethercote
|
8fca324143
|
Bug 1048044 - Use exponential growth when growing an nsTArray. r=froydnj.
|
2014-10-29 20:34:33 -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 |
|
Carsten "Tomcat" Book
|
3ae13c19f6
|
Backed out changeset 1b81b771aee6 (bug 1017418)
|
2014-06-02 11:26:12 +02:00 |
|
Nicholas Nethercote
|
943db38f8f
|
Bug 1017418 (part 2) - Avoid more slop in nsTArray. r=froydnj.
|
2014-06-01 16:08:50 -07:00 |
|
Benoit Jacob
|
3b25b83743
|
Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg
|
2014-05-08 21:03:35 -04:00 |
|
Benjamin Smedberg
|
1246de99b0
|
Bug 938794 - Annotate OOM size as infallible string or data structures abort, r=froydnj
|
2013-11-25 15:06:17 -05:00 |
|
Ehsan Akhgari
|
1ab9c7bcb4
|
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
|
2013-07-18 13:59:53 -04:00 |
|
Jon Coppeard
|
c3a1f44de1
|
Bug 877762 - GC: Post-barrier cycle collector participants - 2 Stop nsTArray memmoving Heap<T>s r=jlebar r=bz
|
2013-06-18 11:00:37 +01:00 |
|
Trevor Saunders
|
4b0fb9fd14
|
bug 856696 - make nsTArray::SwapElements() return void r=jlebar
|
2013-04-01 13:43:34 -04:00 |
|
Ehsan Akhgari
|
d880052f86
|
Bug 853548 - Make nsTArray::SetCapacity and InfallibleTArray::SetCapacity return void; r=jlebar
|
2013-03-21 15:02:20 -04:00 |
|
Justin Lebar
|
f7dd98d002
|
Bug 844820 - Fix two benign races in nsTArray around sEmptyHdr. a=bz
|
2013-02-26 11:24:41 -05:00 |
|
Mats Palmgren
|
fce4a6c022
|
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 |
|
Justin Lebar
|
889a983d62
|
Bug 819791 - Part 3: Make typeof nsTArray == typeof InfallibleTArray. r=bz
Also make typeof nsAutoTArray == typeof AutoInfallibleTArray and switch
files to using nsTArrayForwardDeclare.h.
|
2012-12-18 20:16:06 -05:00 |
|
Boris Zbarsky
|
db6c94fc2e
|
Bug 793253. Infallible TArrays should really be infallible. r=jlebar
|
2012-09-22 22:04:54 -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 |
|
Ms2ger
|
0888dc8833
|
Bug 780387 - Part a: Stop using PRPtrdiff; r=bsmedberg
|
2012-08-09 09:09:31 +02:00 |
|
Gervase Markham
|
cb6a072c2a
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Jesse Ruderman
|
aa6e0c1ad8
|
Bug 732607 - make nsTArray assertions fatal. r=bz
|
2012-03-03 13:16:13 -08:00 |
|
Justin Lebar
|
97f0aa789c
|
Bug 729453 - Decrease stack allocation in nsTArray::SwapArrayElements from 8KB to 64B. r=roc
|
2012-02-22 12:26:21 +01:00 |
|
Jeff Walden
|
e6c7fadf0c
|
Bug 712129 - Implement MOZ_STATIC_ASSERT and MOZ_STATIC_ASSERT_IF. r=luke
|
2011-12-19 16:58:30 -05: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 |
|
Jonathan Kew
|
8ea4547259
|
bug 671297 - add memory reporting for textRuns. r=roc,jlebar
|
2011-10-14 08:06:35 +01:00 |
|
Justin Lebar
|
24f3c3eb98
|
Bug 689433 - Align nsAutoTArray<E> to E's natural alignment. r=roc
|
2011-10-05 09:11:17 -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 |
|
Justin Lebar
|
d2606eb61b
|
Bug 687722 - Make swapping two nsAutoTArrays preserve their auto-ness when possible. r=roc
|
2011-09-22 11:22:20 -04:00 |
|
Justin Lebar
|
30728a6fb9
|
Bug 685438 - Avoid wasted space in nsTArray_base due to jemalloc rounding up. r=roc
|
2011-09-21 00:46:56 -04:00 |
|
Dominic Fandrey
|
532ec73933
|
Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc
|
2011-06-02 14:56:50 +02:00 |
|
Chris Jones
|
2f8662485b
|
Bug 550611: Make nsTArray optionally infallible. sr=bsmedberg a=blocking
|
2010-11-08 20:48:59 -06:00 |
|