Commit Graph

2787 Commits

Author SHA1 Message Date
Panos Astithas
785bd0838e Bug 1086936 part 2 - Add a flag to nsIAppStartup::quit that restarts the browser without using the same profile and use it for the Aurora UI switch. r=bsmedberg 2014-10-27 21:46:56 +02:00
Andrew McCreight
526df61329 Bug 1087799, part 3 - Do not include any JS things in the list of white nodes. r=smaug
Root() does not actually root JS things, so if some other class's Unlink() method ends
up calling the GC, whiteNodes will end up containing dead pointers. (This is safe right
now because the Unlink and Unroot methods do not do anything to JS things.) It is less
error prone to simply never store those pointers.

Also, add some asserts to enforce that we never call any of the white-object methods
for JS things.
2014-10-24 15:06:56 -07:00
Andrew McCreight
04f4e49d61 Bug 1087799, part 2 - Rename count to numWhiteNodes in nsCycleCollector::CollectWhite(). r=smaug 2014-10-24 15:06:56 -07:00
Andrew McCreight
14343f4a96 Bug 1087799, part 1 - Loosen the invariant in nsCycleCollector::FinishAnyCurrentCollection(). r=smaug
If an Unlink() method ends up running JS, it can cause a GC, which will make us reenter the CC,
which will not do anything because we're already in a CC. Therefore, FinishAnyCurrentCollection()
won't finish the CC. This is safe because the CC only touches things it actually holds alive via
the Root() method.
2014-10-24 15:06:55 -07:00
Nicholas Nethercote
e3513fb564 Bug 1087128 - Remove some "Leaky" remnants. r=glandium.
--HG--
extra : rebase_source : b73df80267960f44edb768ff1e2f14ab8134d308
2014-10-21 19:13:05 -07:00
Andrew McCreight
cc506c4751 Bug 727965 - Trigger CC_WAITING GCs based on number of freed JS objects and zones. r=smaug 2014-10-20 10:07:52 -07:00
Nicholas Nethercote
11f776f668 Bug 1044709 - Improve the comment describing the memory report file format. r=mccr8.
--HG--
extra : rebase_source : 41738a5a898c67f6dd4a41cbf0d877d85f3f4feb
2014-09-28 18:35:14 -07:00
Nicholas Nethercote
09a193e478 Bug 1044709 - DMD: emit JSON output and use Python for post-processing. r=mccr8.
--HG--
extra : rebase_source : ddc94d9be1ee0acc6dda30540defd5f40db0adcb
2014-09-02 20:34:58 -07:00
Nicholas Nethercote
94adb30f77 Bug 1062709 (part 2, attempt 2) - Clean up stack printing and fixing. r=dbaron.
--HG--
extra : rebase_source : 626fd23a14ec90cfc9807c3d555169ec6463d19d
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
2eb56008e2 Bug 1062709 (part 1, attempt 2) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
--HG--
extra : rebase_source : 4f7060a9ae0bed180899651c50e8ea8857e72d63
2014-09-10 21:47:01 -07:00
Ed Morley
2d0f9579b5 Backed out changeset a0b82c954206 (bug 1062709) for Windows mochitest 5 hangs 2014-10-03 15:06:16 +01:00
Ed Morley
9e223d8a19 Backed out changeset 7a1b7d7eba12 (bug 1062709) 2014-10-03 15:05:26 +01:00
Nicholas Nethercote
5a257b83f9 Bug 1062709 (part 2) - Clean up stack printing and fixing. r=dbaron.
--HG--
extra : rebase_source : 18158d4474cb8826813a3866eba57b710e14db99
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
c9c64de53c Bug 1062709 (part 1) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
--HG--
extra : rebase_source : 0f9b2d6310433ed56f5552706fcf2a96571aee25
2014-09-10 21:47:01 -07:00
Cervantes Yu
f306f96f76 Bug 1051633: Make sure magic file descriptors in the content process will not be taken for other uses. r=khuey
--HG--
extra : rebase_source : 5e2dedb855dd5e0e6637d6f42c80c69df8081971
2014-09-30 00:00:00 +08:00
Anuj Agarwal
2494ef253f Bug 1071100 - Moved nsRefPtr from nsAutoPtr.h to a new nsRefPtr.h r=froydnj 2014-09-26 10:53:47 -07:00
Carsten "Tomcat" Book
293a55afc8 Backed out changeset 1e25cd3e8219 (bug 1051633) for B2G ICS Emulator Opt m4 test failures 2014-09-24 11:28:37 +02:00
Cervantes Yu
5d34df52be Bug 1051633: Make sure magic file descriptors in the content process will not be taken for other uses. r=khuey
--HG--
extra : rebase_source : 2c9baf6ac87744d7049c90284990c0aa48e0f058
2014-08-15 17:19:05 +08:00
Eric Rahm
96463c70e7 Bug 1060171 - Part 3: Map log level to logcat level in ConsoleService. r=dhylands 2014-09-22 15:33:36 -07:00
Eric Rahm
83245fc00d Bug 1060171 - Part 1: Add log levels to nsIConsoleMessage. r=froydnj 2014-09-22 15:32:21 -07:00
Ryan VanderMeulen
cae5eb937c Merge m-c to inbound. a=merge 2014-09-22 15:51:51 -04:00
Eric Rahm
94ca85eb44 Bug 1069490 - Part 2: Add columnNumber to nsIStackFrame and set in JSStackFrame. r=bz 2014-09-22 11:28:31 -07:00
Vlatko Markovic
8818f4947f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 1. r=dkeeler,rlb 2014-09-22 07:58:59 -07:00
Nick Thomas
8a362441f2 Bug 1063237, include android sdk version in FirefoxOS update requests, r=dhylands 2014-09-22 22:08:01 +12:00
Nicholas Nethercote
eb4d250262 Bug 1067711 (attempt 2) - Fix an assertion failure in the System memory reporter. r=erahm. 2014-09-17 18:23:33 -07:00
Carsten "Tomcat" Book
186ce26b02 Backed out changeset ba6a9e60d2c6 (bug 1067711) for XPCshell Test failures 2014-09-18 11:50:34 +02:00
Nicholas Nethercote
4a7eef6b52 Bug 1067711 - Fix an assertion failure in the System memory reporter. r=erahm.
--HG--
extra : rebase_source : 06fa4b0d706414901ce2475e987067d5cb4f0f6f
2014-09-17 18:23:33 -07:00
Nicholas Nethercote
273d7cc068 Bug 1067699 (part 2) - Add mfbt/JSONWriter.h and use it for memory reporting. r=froydnj.
--HG--
extra : rebase_source : 7eb21c4c20c0434b3b236d1c53cbef9cb6a4759c
2014-09-14 23:36:18 -07:00
Bill McCloskey
4735655406 Bug 1049275 - Don't use IPC for crash reporting after NS_ABORT (r=bsmedberg) 2014-09-12 11:44:38 -07:00
Nicholas Nethercote
28935b35cb Bug 1065834 - Remove long-busted Solaris stack-walking code. r=froydnj. 2014-09-10 19:46:54 -07:00
Ryan VanderMeulen
d0a9c46918 Backed out changeset 317c684efd2d (bug 997908) for mochitest-e10s leaks. 2014-09-19 13:43:02 -04:00
Steven Michaud
360e6d185c Bug 997908 - Test patch to make crash stacks better. r=mccr8 2014-09-19 11:59:40 -05:00
Nicholas Nethercote
0b66ceae91 Bug 1065258 (part 8) - Rename TempDirMemoryFinishCallback. r=jld.
--HG--
extra : rebase_source : c478218da5d45e091156aa4dc9d64514f71d403d
2014-09-10 00:41:50 -07:00
Nicholas Nethercote
03c5fb0c7d Bug 1065258 (part 7) - Move DumpMemoryReportsToNamedFile earlier. r=jld.
--HG--
extra : rebase_source : b9f6289c6ed0010997d1e21fd461a802d1895cf0
2014-09-10 00:40:36 -07:00
Nicholas Nethercote
90e73486ef Bug 1065258 (part 6) - Factor out code shared by DumpMemoryReportsToNamedFile() and DumpMemoryInfoToTempDir(). r=jld.
--HG--
extra : rebase_source : 2f4c9f6da6202169ec480dcbf52047308c25b840
2014-09-10 00:40:10 -07:00
Nicholas Nethercote
fcdaede7d4 Bug 1065258 (part 5) - Make TempDirMemoryFinishCallback a nsIFinishDumpingCallback object. r=jld.
--HG--
extra : rebase_source : 0a16d0a6193c3de9ae7cc1c68991dbda24171dc7
2014-09-10 00:34:47 -07:00
Nicholas Nethercote
70c26f1e8b Bug 1065258 (part 4) - Move FinishReportingCallback earlier. r=jld.
--HG--
extra : rebase_source : e9c5cc0bf8297cfcef9fae1f0b7da5d03afc659c
2014-09-10 00:32:58 -07:00
Nicholas Nethercote
6108d5a9bf Bug 1065258 (part 3) - Remove TempDirMemoryFinishCallback::mIdentifier, which is dead. r=jld.
--HG--
extra : rebase_source : 7db3562208f78be05b855efcbee7f6182df8bf42
2014-09-10 00:31:40 -07:00
Nicholas Nethercote
74321f14ac Bug 1065258 (part 2) - Rename some variables. r=jld.
--HG--
extra : rebase_source : cd1ff03dbf8ad455529ba763c722cb1ec34162b1
2014-09-10 00:30:17 -07:00
Nicholas Nethercote
a461a8bd9b Bug 1065258 (part 1) - Inline TempDirMemoryFinishCallback(). r=jld.
--HG--
extra : rebase_source : 40f0ebd81d3e4061a4bfde932ef1e55cfd5d7332
2014-09-10 00:27:45 -07:00
Eric Rahm
7bee1eeb55 Bug 1059593 - logcat entries from console logging should include app name. r=dhylands
--HG--
extra : rebase_source : 8e924b6a97b49eee3bfa0c89e81d15cd3b4dfaef
2014-09-09 16:52:08 -07:00
Bob Owen
33eaabbf1f Bug 1063455 - Define MOZ_STACKWALKING when NS_StackWalk is available and replace other instances of the same #if logic. r=mshal, r=froydnj 2014-09-08 18:25:20 +01:00
Nicholas Nethercote
b662348a22 Bug 1061024 (part 3) - Remove a redundant dmd::ClearReports() call. r=jld.
--HG--
extra : rebase_source : 5c79c9187fbffe2b5a8c63184cc9d3f158877a8e
2014-08-31 22:36:01 -07:00
Nicholas Nethercote
cb8defd2fa Bug 1061024 (part 2) - Some minor DMD clean-ups. r=jld.
--HG--
extra : rebase_source : f780376e8803222c92a5a92bc4155600e068ce0c
2014-08-31 22:35:28 -07:00
Nicholas Nethercote
d64852855e Bug 1061024 (part 1) - Don't run DMD when about:memory's "Measure" button is pressed. r=jld.
--HG--
extra : rebase_source : ddf0236352c64eb9839dfd0a219451a568aba10e
2014-08-31 20:36:26 -07:00
Nicholas Nethercote
c632d54478 Bug 1063321 - Print to the console the paths of all files that DMD opens. r=mccr8.
--HG--
extra : rebase_source : 50a18a0a074f929ab934c5b3eade1c69e6ba4510
2014-09-04 20:45:22 -07:00
Nicholas Nethercote
ab2d367e37 Bug 1050601 - Remove fix-linux-stack.pl. r=ted.
--HG--
extra : rebase_source : f344aa5db9e16575835a7de3df34c311635c128b
2014-09-03 09:24:38 -07:00
Nicholas Nethercote
44c8808fe5 Bug 1061385 - Remove |Writer| parameter from CodeAddressService. r=mccr8.
--HG--
extra : rebase_source : 0ed67121aac5c9f63ed647e31cd5321eca0b25b7
2014-09-01 20:03:06 -07:00
Ehsan Akhgari
b1b56df2fe Bug 1061254 - Fix more bad implicit constructors in misc. components; r=bsmedberg 2014-09-02 18:24:49 -04:00
Trevor Saunders
d75ed5bf7f bug 1059490 - mark more classes MOZ_FINAL r=froydnj 2014-08-27 14:26:48 -04:00
Trevor Saunders
99c54d4b34 bug 1059429 - fix static constructor for FlushEvent r=froydnj 2014-08-27 14:06:55 -04:00
Masayuki Nakano
93cf48640e Bug 826657 part.2 Implement NOTIFY_IME_OF_MOUSE_BUTTON_EVENT in XP part r=smaug+ehsan 2014-08-29 19:08:43 +09:00
Botond Ballo
717d780f6d Bug 965022 - Define MOZ_FORMAT_PRINTF(...) macro which expands to __attribute__(format(printf, ...)) where supported. r=froydnj
--HG--
extra : rebase_source : bbfc41dccba336ac290710a8c3ead77ae0d1df5f
2014-08-25 16:00:29 -04:00
Nicholas Nethercote
f57e56e187 Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg.
--HG--
extra : rebase_source : 250ec1323d4097101a8e0331a2bf7fab59f72b1d
2014-08-27 15:47:27 -07:00
Nicholas Nethercote
df1c26a45e Bug 1057912 - Privatize most of PLDHashTable's fields. r=roc.
--HG--
extra : rebase_source : 0f55e70b63d9c191fbd9418cb1177ff534deeed9
2014-08-25 16:56:33 -07:00
Ryan VanderMeulen
a19bf3acbf Backed out 5 changesets (bug 965022) for mochitest-2 failures on a CLOSED TREE.
Backed out changeset 7f68752ffe1e (bug 965022)
Backed out changeset 24251d4da019 (bug 965022)
Backed out changeset a34ae046c947 (bug 965022)
Backed out changeset f747fd154739 (bug 965022)
Backed out changeset f076faf3c282 (bug 965022)
2014-08-26 16:02:37 -04:00
Botond Ballo
8b35fc719c Bug 965022 - Define MOZ_FORMAT_PRINTF(...) macro which expands to __attribute__(format(printf, ...)) where supported. r=froydnj 2014-08-25 16:00:29 -04:00
Andrew McCreight
7065703fce Bug 1055280 - Move CountingAllocatorBase into its own header file. r=froydnj 2014-08-25 12:34:00 -07:00
Birunthan Mohanathas
16471161bb Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj 2014-08-25 12:17:24 -07:00
Birunthan Mohanathas
80ef08ccd8 Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Ryan VanderMeulen
81342753e0 Merge inbound to m-c. a=merge
CLOSED TREE
2014-08-25 11:49:37 -04:00
Jamin Liu
f895ab8db1 Bug 1032755 - Add NS_ERROR_MODULE_DOM_BLUETOOTH to nsError list and allow it to be used to create dom exception. r=smaug, f=dhylands, btian 2014-08-25 14:51:20 +08:00
Trevor Saunders
fd5e9d1fcc bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Andrew McCreight
61760ede9d Bug 1055322 - The realloc for libnestegg should free with size 0. r=froydnj 2014-08-21 14:43:02 -07:00
Jon Coppeard
511f6ef1c5 Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug 2014-08-13 10:05:22 +01:00
Eric Rahm
87668897f6 Bug 1056962 - Part 1: Move GetThreadName to LinuxUtils. r=jld 2014-08-22 16:35:29 -07:00
Vladimir Vukicevic
30ef1c1524 b=1046222; change XPCOM_DEBUG_BREAK default under Windows to "warn"; r=bsmedberg 2014-08-12 12:04:32 -04:00
Kyle Huey
f44be6e473 Bug 1051122: Don't infinitely recurse in CodeAddressServiceStringAlloc::free. r=dbaron 2014-08-10 09:27:23 -07:00
Birunthan Mohanathas
c70ab152cb Bug 1050003 - Remove unnecessary if checks before delete-ing in xpcom/. r=froydnj 2014-08-08 07:04:45 -07:00
Nicholas Nethercote
a7cf4142b4 Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Terrence Cole
3718c92afc Bug 1047120 - PurpleBuffer doesn't actually need to use Heap<T>; r=mccr8,jonco 2014-07-31 14:43:45 -07:00
Ehsan Akhgari
4af9c14370 Bug 1048239 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:32 -04:00
Eric Rahm
4d0205fb6f Bug 1027921 - Part 9: Add DeadlockDetector memory reporter. r=njn, r=froydnj 2014-08-04 16:20:37 -07:00
Ryan VanderMeulen
141996a3e9 Merge m-c to inbound on a CLOSED TREE. a=merge 2014-08-01 16:01:07 -04:00
Ryan VanderMeulen
e953ea9c38 Merge inbound to m-c. a=merge 2014-08-01 15:59:05 -04:00
Ed Morley
bf8ae62798 Merge mozilla-central and b2g-inbound 2014-08-01 18:03:34 +01:00
Andrew McCreight
fb1bd79d45 Bug 1004609, part 8 - Implement a caching version of WalkTheStack using LocationService. r=froydnj
Then use it in ref counting.
2014-08-01 09:27:35 -07:00
Andrew McCreight
1bc1c6b551 Bug 1004593 - Remove the unused nsTraceRefCnt::Startup(). r=froydnj 2014-08-01 10:02:30 -07:00
Nicholas Nethercote
f907318caa Bug 1046477 (part 1) - Separate the reporting of the main and static atoms tables. r=froydnj.
--HG--
extra : rebase_source : c60db11fc39d180e43f22e7f395eea24cd358aa3
2014-07-30 23:06:57 -07:00
Andrew McCreight
7bf01ccf5c Backout 6bdab42ab879 for breaking S builds 2014-07-31 17:15:17 -07:00
Andrew McCreight
5789405d87 Backed out changeset a9cf5734aff2 2014-07-31 17:14:34 -07:00
Andrew McCreight
43d6f265f1 Bug 1004609, followup - fix non STACKWALKING_AVAILABLE builds. r=bustage 2014-07-31 17:02:02 -07:00
Andrew McCreight
7129a441e8 Bug 1004609, part 8 - Implement a caching version of WalkTheStack using LocationService. r=froydnj
Then use it in ref counting.
2014-07-31 16:39:25 -07:00
Andrew McCreight
081e25d9f3 Bug 1004609, part 7 - Move LocationService into xpcom. r=njn,froydnj 2014-07-31 16:39:25 -07:00
Andrew McCreight
d195958a97 Bug 1004609, part 6 - Add empty CodeAddressService.h file. r=froydnj 2014-07-31 16:39:25 -07:00
Nathan Froyd
12c76f15f7 Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium 2014-07-24 11:55:33 -04:00
Thinker K.F. Li
e9dc84b5a1 Bug 977026 - Part 2: B2G loader. r=khuey, r=cyu
--HG--
rename : ipc/app/MozillaRuntimeMain.cpp => ipc/contentproc/plugin-container.cpp
2014-07-30 03:24:00 -04:00
Benoit Jacob
c50ccf8dba Bug 1044658 - 5/6 - remove asWeakPtr - r=froydnj 2014-07-30 15:52:05 -04:00
Ehsan Akhgari
3fa82c9346 Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-07-29 20:43:56 -04:00
Andrew McCreight
44c42eea7a Bug 1037510, part 1 - Add nursery size as a parameter of CycleCollectedJSRuntime. r=khuey 2014-07-29 15:38:14 -07:00
Daniel Holbert
ff3ada8eb7 Bug 1045110 - Add parens around assignment in "while" condition, to silence GCC Wparentheses warning. r=njn 2014-07-28 17:09:00 +02:00
Mike Hommey
9424087517 Backout changesets 7ff3cd713466, f8ec5977a454 and c7c37390b46b (bug 977026) for b2g bustage on a CLOSED TREE. 2014-07-29 14:50:41 +09:00
Wes Kocher
1ce0c3e306 Merge m-c to inbound on a CLOSED TREE 2014-07-28 18:51:24 -07:00
Carsten "Tomcat" Book
aeabc85ae7 Merge mozilla-central to b2g-inbound 2014-07-28 16:06:50 +02:00
Thinker K.F. Li
5a9232dbfc Bug 977026 - part 2: B2G loader. r=khuey,cyu
--HG--
rename : ipc/app/MozillaRuntimeMain.cpp => ipc/contentproc/plugin-container.cpp
2014-07-25 20:52:00 +02:00
Andrew McCreight
b4fcba544d Bug 1038887 - Add back null check to nsErrorService::GetErrorStringBundle. r=froydnj 2014-07-25 16:41:24 -07:00
Ehsan Akhgari
520fd897ed Bug 1045065 - Fix some bad implicit constructors in xpcom; r=froydnj 2014-07-28 13:19:06 -04:00
Jon Coppeard
c71e29bdb6 Bug 1043888 - Make GetObjetZone() work on nursery objects and rename GetGCThingZone() to GetTenuredGCThingZone() r=terrence 2014-07-28 10:39:36 +01:00
Eric Rahm
64c1102336 Bug 1038888 - Extend system memory reporter to report ion memory. r=njn
--HG--
extra : rebase_source : 39dbc0a696d67c1a239876ec8ca412527fc2712e
2014-07-23 16:36:27 -07:00
Mike Hommey
bc5d6801bb Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00