Commit Graph

65 Commits

Author SHA1 Message Date
Bill McCloskey
e1b97bbdea Bug 798678 - Add weakmap key preservation support to cycle collector (r=mccr8) 2012-10-17 18:22:46 -07:00
Ehsan Akhgari
707fdff5de Bug 792649 - Make the simplest of Web Audio tests work without audio playback for now; r=bzbarsky 2012-09-24 23:31:58 -04:00
Olli Pettay
6e4f7ab3ea Bug 784563 - Investigate being lazier about removing things from the purple buffer, r=mccr8 2012-09-08 13:46:48 +03:00
Andrew McCreight
3f6c58c43d Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug 2012-08-27 10:41:04 -07:00
Andrew McCreight
62325fa9f3 Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.

This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.

nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over.  See bug 774874.
2012-08-24 09:50:06 -07:00
Andrew McCreight
49d8c9be16 Bug 750570, part 1 - lift UnmarkIfPurple to the root CC participant. r=glandium,smaug
All CC classes are potentially cycle collectable, so we need
to implement this function on the participant for all CC classes.
2012-08-24 09:50:06 -07: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
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Mike Hommey
112c562b7e Bug 775424 - Make cycle collection vtables rodata. r=smaug 2012-07-23 07:42:23 +02:00
Ehsan Akhgari
b3a3876f4b Bug 772738 - Avoid "unused variable 'tmp'" warnings for empty CC traverse method implementations; r=smaug 2012-07-11 00:26:56 -04:00
Mike Hommey
c533a83b6c Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Mike Hommey
311cae060f Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange 2012-06-15 15:50:24 +02:00
Mike Hommey
988d722ae2 Fixup for bug 616262 to avoid Windows PGO bustage. r=me 2012-06-15 10:49:53 +02:00
Mike Hommey
88257ed076 Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Ryan VanderMeulen
891e38e528 Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
f497d31a0a Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00
Andrew McCreight
f4f0e1a935 Bug 754478 - clean up cycle collector JS tracing callbacks. r=bent 2012-05-15 09:56:39 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ms2ger
3d92167c95 Bug 754643 - Enable FAIL_ON_WARNINGS in content/media; r=cpearce f=roc 2012-05-18 10:29:38 +02:00
Andrew McCreight
a6b24a3344 Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug 2012-05-03 12:28:11 -07:00
Andrew McCreight
3ac11cfc5b Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug 2012-05-03 12:28:10 -07:00
Andrew McCreight
a5af270e47 Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv 2012-04-25 08:10:09 -07:00
Andrew McCreight
e462a99306 Bug 738769 - only unmark purple if purple. r=smaug 2012-03-26 09:57:29 -07:00
Andrew McCreight
b6dc584bd7 Bug 727313 - avoid warnings, add case for skippable CC macros. r=smaug 2012-02-15 15:28:42 -08:00
Olli Pettay
49ff9c7a84 Bug 725768 - BBP for ObjectHolders, additional patch 2, r=mccr8 2012-02-13 22:59:14 +02:00
Olli Pettay
28a7fd7259 Bug 720423 - Add NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_INHERITED, r=mccr8
--HG--
extra : rebase_source : 91df46f35d3cc2c24462e0373c69e207f65a8bc3
2012-01-23 23:06:58 +01:00
Olli Pettay
b691b9467a Bug 718634 - Move CanSkip* to nsCycleCollectionParticipant, r=mccr8
--HG--
extra : rebase_source : 7eb8cadf14e2d38d689e74a354d6edee6f7f9d20
2012-01-17 18:32:19 +02:00
Olli Pettay
a194588f7c Bug 716518 - Add skip* phases to cycle collector, r=mccr8
--HG--
extra : rebase_source : c53a42bbbc430384df37d0aeb0d882c09665f672
2012-01-14 18:58:05 +02:00
Andrew McCreight
46b5e713df Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05: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
Peter Van der Beken
2cc98005f0 Fix for bug 664388 (NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS uses wrong pointer). r=bent.
--HG--
extra : rebase_source : b98acfb314f8b3e59b31d10e6ac7bc7d965287a1
2011-06-21 15:23:35 +02:00
Andrew McCreight
8795ae8744 Bug 665564 - change DescribeNode to DescribeRefCountedNode to remove CCNodeType. r=bent 2011-06-23 14:10:52 -07:00
Shawn Gong
d399113e9b Bug 658683: Make xhr.response not create a new ArrayBuffer every time it is accessed. r=sicking. Additional fixes by sicking, r=peterv 2011-05-23 18:09:28 -07:00
Peter Van der Beken
2f1dbc28dd Fix for bug ug 652135 (Add more CC edge names). r=dbaron.
--HG--
extra : rebase_source : a29d880341d333f6082f640ea467928b621b5b82
2011-02-02 16:30:03 +01:00
L. David Baron
3f90844e3c Implement window.matchMedia for matching of media queries and notification of media query changes. (Bug 542058, patch 3) r=bzbarsky
This is specified at:
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
2011-04-21 20:17:31 -07:00
Peter Van der Beken
5e9f7069fe Fix for bug 584048 (Clean up cycle collection code) - rename RootAndUnlinkJSObjects to Root. r=bent. 2010-12-16 16:30:13 +01:00
Peter Van der Beken
122342da0b Fix for bug 584048 (Clean up cycle collection code) - move unlinking of JS members from root into unlink. r=bent. 2010-11-08 16:02:49 +01:00
Ben Turner
fca93ac512 Bug 580096 - 'move the cycle collector off the main thread'. r=peterv+jst 2010-11-11 14:52:30 -08:00
Peter Van der Beken
febc52d054 Fix for bug 466157 (Better CC logging for nodes). r=dbaron, a=jst.
--HG--
extra : rebase_source : 57ff8e5558708e188a5e1e444094a522138c20b1
2009-02-27 15:48:26 +01:00
David Humphrey
07de814ba1 bug 490705 - Support Audio Data API: Get, Manipulate, Play & Save. r=smaug+kinetik+peterv, sr=vlad, a=vlad 2010-08-25 09:10:00 -04:00
Ted Mielczarek
be942c946d Backed out changeset 1362f0ca86d2 (bug 490705 - Support Audio Data API: Get, Manipulate, Play & Save) due to test failures. 2010-08-18 13:04:31 -04:00
David Humphrey
960122a5de bug 490705 - Support Audio Data API: Get, Manipulate, Play & Save. r=smaug+kinetik+peterv, sr=vlad, a=vlad 2010-08-17 09:40:00 -04:00
Ehsan Akhgari
42bde816bb Bug 569504 - Fix the spell checker leaking windows and documents; r=roc 2010-06-02 14:33:47 -04:00
Blake Kaplan
96a04e8df6 Bug 501840 - Avoid a warning when a cycle collection participant doesn't use tmp. r+sr=peterv 2009-07-16 13:06:26 -07:00
L. David Baron
9a8d97752d Make some of the DEBUG_CC code accessible to code in non-debug builds so it can be used by memory tools for Web developers. (Bug 500233) r+sr=peterv 2009-07-08 18:10:29 -07:00
Peter Van der Beken
ca8ccf47e0 Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap. 2009-05-12 22:20:42 +02:00
Doug Turner
7e69536472 Bug 488862 - crash while geolocation is retrieving data [@ nsGeolocation::RemoveRequest]. r=dbaron, sr=smaug, r=ctalbert on tests 2009-06-11 17:46:46 -07:00
Peter Van der Beken
b865be6ac9 Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst.
--HG--
extra : rebase_source : 459f24ea980bf4cab29bc88115138f6ed5144e49
2009-05-07 11:19:36 -07:00
Olli Pettay
486b27fd0a Bug 480956 - HTMLDocument and some other dom objects traverse member variables even if the document is in 'nsCCUncollectableMarker::InGeneration' r+sr=peterv 2009-03-03 14:14:13 +02:00
Arpad Borsos
8b11d938d2 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00