Catalin Iacob
83b78343dc
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
Mats Palmgren
18e978a375
Bug 867530 - Make the current poison consumers use the new API. r=roc
2013-05-07 20:48:59 +02:00
Mats Palmgren
c05c58a0a5
Bug 867530 - Move PresArena poisoning code to MFBT. r=roc
...
--HG--
rename : layout/base/tests/cpp-tests/TestPoisonArea.cpp => mfbt/tests/TestPoisonArea.cpp
2013-05-07 20:48:59 +02:00
Mats Palmgren
0ce1179320
Bug 856368 - Inline the AllocateBy* and FreeBy* methods into the header. r=roc
2013-04-15 22:00:06 +02:00
Mats Palmgren
75bb4ed6a0
Bug 856368 - Adjust memory reporter SizeOf methods accordingly. r=roc
2013-04-15 22:00:06 +02:00
Mats Palmgren
1e9bd59184
Bug 856368 - Merge nsPresArena::mState into nsPresArena itself. r=roc
2013-04-15 22:00:06 +02:00
Mats Palmgren
702d0070af
Bug 856368 - Remove DEBUG_TRACEMALLOC_PRESARENA. r=roc
2013-04-15 22:00:06 +02:00
Christian Holler
2ff6bc13f4
Bug 852476 - Fix Valgrind annotations in nsPresArena.cpp. r=mats
...
--HG--
extra : rebase_source : 0f7ffca296ad5a68ebef0e44b3b5be4b5370c04d
2013-03-25 15:27:43 +01:00
Christian Holler
60db5c6203
Bug 838557 - Fix obvious problem with previous patch in nsPresShell.cpp, r=me
2013-02-18 02:48:41 +01:00
Christian Holler
a933aec5ad
Bug 838557 - Create a common interface for ASan/Valgrind functions. r=mats,bhackett
2013-02-15 00:50:11 +01:00
Wan-Teh Chang
983957f583
Bug 807883: Reformat a function call.
2013-02-12 18:48:59 -08:00
Wan-Teh Chang
d8013e6054
Bug 807883: Use the new PL_SizeOfArenaPoolExcludingPool function
...
in NSPR 4.9.6. Portions of the patch were written by Nicholas
Nethercote <n.nethercote@gmail.com>. r=n.nethercote.
2013-02-12 08:54:38 -08:00
Christian Holler
6fd655dead
Bug 838150 - Add ASan and Valgrind annotations to JS LifoAlloc. r=bhackett
2013-02-06 14:30:01 +01:00
Mats Palmgren
2abdce6cae
Bug 827150 - Notify ASan/Valgrind when moving entries in and out of a PresArena free list. r=roc,choller
2013-02-03 02:04:29 +01:00
Trevor Saunders
95a86d6399
bug 801466 - part 1 - remove uses of prmem in layout/ xpcom/ and modules/ r=roc
2012-12-03 16:18:36 -05:00
L. David Baron
1d86113ecf
Bug 809533, patch 1: Make allocation in the frame arena and the display list arena infallible. r=roc
2012-11-07 11:55:53 -08:00
Ehsan Akhgari
fda8c5cb60
Bug 794510 - Part 8 (second half)
2012-10-18 15:04:20 -04:00
L. David Baron
1f71d3cf65
Print which bits have errors to try to distinguish overwriting from hardware problems. (Bug 785737) r=roc
2012-08-29 18:27:01 -07:00
Ehsan Akhgari
8c296bbcd4
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
Nathan Froyd
fdb381e06d
Bug 674922 - report on most common objects allocated in a PresShell's arena; r=roc,njn
2012-06-06 13:35:40 -04:00
Nathan Froyd
21b0f8399f
Bug 674922 - report per-frame-type numbers in about:memory; r=njn,roc
2012-06-06 13:29:16 -04:00
Nathan Froyd
d4a8e9a29f
Bug 674922 - account for all of nsPresArena::State's members; r=njn
2012-06-05 12:33:54 -04:00
Nathan Froyd
7a87ca1ecf
Bug 760812 - correct bitflags for allocating objects by size in nsPresArena; r=roc
2012-06-05 10:14:58 -04:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
2187798a40
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Mats Palmgren
8582ded41c
Bug 750745 - Introduce AllocateByObjectID/FreeByObjectID for allocating non-frame objects from per-type lists in the PresArena. part=2/3 r=roc
2012-05-04 02:14:02 +02:00
Mats Palmgren
125932d5d4
Bug 750745 - Rename nsPresArena::AllocateByCode/FreeByCode to AllocateByFrameID/FreeByFrameID. part=1/3 r=roc
2012-05-04 02:14:02 +02:00
Patrick Wong
15df25098f
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Mark Capella
1839be84c0
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
...
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Nicholas Nethercote
dd32d38d63
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
2a7afd1ec3
Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky
2011-12-08 21:01:52 -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
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
Nicholas Nethercote
5759d6b971
Bug 680827 - Undo nsPresArena workaround from bug 678422. r=roc.
2011-08-21 23:34:11 -07:00
Nicholas Nethercote
8b205c5633
Bug 678422 - Avoid wasting half of nsPresArena's allocated memory due to clownshoes. r=roc.
2011-08-11 18:53:29 -07:00
Mats Palmgren
5e7c4e1182
Bug 645423 - Initialize the poison value also for DEBUG_TRACEMALLOC_PRESARENA builds. r=dbaron
2011-04-04 13:41:02 +02:00
L. David Baron
f1fb6dbc73
Add poisoning for nsRuleData::mValueOffsets. (Bug 636039, patch 19) r=bzbarsky
...
I tested manually that after:
(a) removing the |ruleData.mValueOffsets[aSID] = 0;| in
nsRuleNode::WalkRuleTree
(b) removing the NS_ABORT_IF_FALSE(aRuleData->mValueOffsets[aSID] == 0,
...) from nsRuleNode::CheckSpecifiedProperties and
UnsetPropertiesWithoutFlags
that we crash dereferencing the poison address in a SetCoord call inside
nsRuleNode::ComputeTextResetData
2011-03-17 20:14:31 -07:00
Rich Walsh
bc424b4fe8
Bug 530012 - [OS/2] build break in nsPresArena.cpp; r=wuno a=dbaron
...
--HG--
extra : rebase_source : a64adf531e9132c583419def72c712fc345774d7
2011-02-15 17:10:16 -05:00
Vladimir Vukicevic
cdebcfceeb
b=566447; add presshell memory reporter; r=bz
2010-05-31 19:19:35 -07:00
Zack Weinberg
e125669860
Bug 531847: Include address chosen for frame poisoning in breakpad reports. r=ted a192=roc
2009-12-01 14:48:23 -08:00
Zack Weinberg
cf67dd36c8
Bug 530598: If we can't get the preferred address for a poison page, take whatever the OS will give us, rather than giving up
2009-11-30 08:51:07 -08:00
Ginn Chen
546bba6b66
Bug 529764 nsPresArena.cpp failed to compile on Solaris r=zweinberg
2009-11-20 14:11:42 +08:00
Zack Weinberg
3c349b25a6
Bug 522088 and bug 507924: Ensure that the value used for frame poisoning is a pointer to an inaccessible page of virtual memory.
2009-11-17 11:17:20 -08:00
L. David Baron
0d9c6b626c
Make DEBUG_TRACEMALLOC_PRESARENA compile again by spelling PRUint32 correctly.
2009-11-12 17:40:05 -08:00
Zack Weinberg
1bbb6caf46
Bug 497495 (frame poisoning) part 4: Change nsPresArena to maintain separate free lists for every frame class, based on its FrameIID. Pass the necessary information in from AllocateFrame and FreeFrame. r=roc sr=dbaron
2009-09-16 10:00:04 +12:00
Justin Dolske
f221ae86bd
Backed out changeset a3f33def2dca (bug 497495 part 4)
2009-09-14 17:26:08 -07:00
Boris Zbarsky
efc26f0c70
Bug 497495 (frame poisoning) part 4: Change nsPresArena to maintain separate free lists for every frame class, based on its FrameIID. Pass the necessary information in from AllocateFrame and FreeFrame. r=roc sr=dbaron
2009-09-14 17:29:56 -04:00
Zack Weinberg
f1502249fc
Bug 497495 (frame poisoning) part 1: Move the frame arena code to its own file and rename the class to nsPresArena. r=roc
2009-08-17 20:21:06 -07:00