Boris Zbarsky
5df498fbd2
Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
cc563df19f
Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
38af226a36
Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
8ef4cc7c3d
Bug 1257919 part 3. Make the various toString methods on exceptions take an explicit JSContext. r=khuey
2016-03-22 13:50:31 -04:00
Boris Zbarsky
c978d9ded6
Bug 1257919 part 2. Make nsIException and nsIStackFrame builtinclass, so we can start using [implicit_jscontext] on them. r=khuey
2016-03-22 13:50:31 -04:00
Tooru Fujisawa
e2a8d2a6b4
Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz
2016-01-01 14:19:20 +09:00
Honza Bambas
32c3d179be
Bug 1248565 - Introduce MOZ_LOG_* variables for mozilla logging. r=erahm
2016-03-10 08:22:00 -05:00
Mike Hommey
0a771514a8
Bug 1256988 - Replace tests on MOZ_WIDGET_GTK with tests on MOZ_WIDGET_TOOLKIT containing gtk. r=chmanchester
...
But only do that for the AC_SUBST. The AC_DEFINE is still useful.
2016-03-17 06:49:44 +09:00
Nicholas Nethercote
a2f068b2ad
Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj.
...
This is easy because it's never needed.
--HG--
extra : rebase_source : 78830dab41c40a1544fa55fc69ca9c1c6709d767
2016-03-16 15:33:44 +11:00
Franziskus Kiefer
bd54ab19d3
Bug 1226928 - signature verification for content-signing, r=keeler,mayhemer
2016-03-14 11:56:35 +01:00
Tooru Fujisawa
20ae44e9a0
Backed out changeset 08ee8e76c703 (bug 1153978)
2016-03-13 04:26:57 +09:00
Tooru Fujisawa
a66bde4a5f
Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz
2016-01-01 14:19:20 +09:00
Benoit Girard
52f227c58b
Bug 1253678 - Rename mozilla::Function to mozilla::function. r=froydnj
...
MozReview-Commit-ID: 60RPmEsYDN2
--HG--
extra : rebase_source : 9d0bebc7362af2778d123425c56ac20553d9303b
2016-03-11 16:49:13 -05:00
Peter Van der Beken
77f7208a3f
Bug 1255223 - Null crash when logging weak maps. r=mccr8.
...
--HG--
extra : rebase_source : f8c8d9bf095d80b0de0c7af9377c923b7fbb3708
2016-03-04 23:11:37 +01:00
Kyle Huey
9eea75a6f5
Bug 1252268: If the slow script dialog aborts an interval timer callback, don't schedule it again. r=bz
2016-03-10 01:50:56 -08:00
Boris Zbarsky
36d4079be7
Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley
2016-03-09 19:02:03 -05:00
Till Schneidereit
227c5295de
Bug 1254943 - Set JS execution reason when invoking Promise callbacks. r=bz
2016-03-09 14:24:33 +01:00
Jonathan Watt
6691a673f4
Bug 1253094, part 9 - Stop using DebugOnly for class/struct members in xpcom/. r=froydnj
...
MozReview-Commit-ID: ACYMR37DGU9
2016-02-26 15:52:08 +00:00
Nicholas Nethercote
0bdb70d67c
Bug 1253142 - Remove the long-deprecated nsIMemory.isLowMemory function. r=froydnj.
...
--HG--
extra : rebase_source : cf1c78836f8ba44d6dca5d3ef79b30fdef06f88a
2016-03-06 21:07:51 +11:00
Nicholas Nethercote
6373d8547c
Bug 1252375 - Fix up jemalloc stats reporting. r=erahm.
...
We have some oddities in our jemalloc stats reporting.
- "heap-overhead-ratio" is a strange measurement: overhead / non-overhead,
expressed as a percentage. And it omits "bin_unused", which appears to be an
oversight.
- "heap-committed" also omits "bin_unused".
- There are some minor errors in memory report descriptions.
This patch fixes these and improves the heap reporting. It makes the following
reporting changes:
- "heap-allocated": Duplicated as "heap-committed/allocated". (We keep
"heap-allocated" because that's a special value used in the computation of
"heap-unclassified".)
- "heap-committed/overhead": Added; it's the same as the sum of the
"explicit/heap-overhead/*" values. Together with "heap-committed/allocated"
it shows clearly what fraction of the heap is overhead and what fraction is
useful.
- "heap-committed": Removed; now implicit as the "heap-committed/" node.
- "heap-overhead-ratio":
- Removed from memory reports; now shown as the percentage of the new
"heap-committed/overhead" node.
- Still available as a distinguished amount (because it's useful in
isolation) but renamed to heapOverheadFraction, and the telemetry ID is
renamed as MEMORY_HEAP_OVERHEAD_FRACTION.
- "heap-chunks": Removed; it's not that interesting, and can be manually
computed as "heap-mapped" / "heap-chunksize" if necessary.
--HG--
extra : rebase_source : 6f238cda780eb17b2de2f8b9a0b04377c93b109c
2016-03-03 12:49:27 +11:00
Gerald Squelart
c3ccd1ea7d
Bug 1242343 - p1. ConstructSystem32Path from LoadLibrarySystem32 - r=jimm
...
Part 1: Refactored LoadLibrarySystem32 to expose the system32-path
construction code, so it can be re-used in the following patch.
MozReview-Commit-ID: J5BcI34VPnN
2016-03-03 08:40:23 +11:00
Boris Zbarsky
4f623415e0
Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley
2016-03-01 16:53:22 -05:00
Boris Zbarsky
94e65058c3
Bug 1252565 part 1. Push the script environment preparer bits up from XPCJSRuntime to CycleCollectedJSRuntime, because we need them on workers to do ctypes on workers properly. r=bholley
2016-03-02 12:38:24 -05:00
Wes Kocher
cba1a7bd55
Backed out 2 changesets (bug 1252565) for windows build bustage CLOSED TREE
...
Backed out changeset 9de2c10a1cc3 (bug 1252565)
Backed out changeset fc5c4cb02d24 (bug 1252565)
MozReview-Commit-ID: GCQedQwqslg
--HG--
extra : amend_source : 5fb6bd99e2ac56c01c06e1004262dfeb2ea56410
2016-03-02 10:44:11 -08:00
Boris Zbarsky
3bad87c74a
Bug 1252565 part 2. Make dom::WarningOnlyErrorReporter handle workers. r=bholley
2016-03-01 16:53:22 -05:00
Boris Zbarsky
3baae07268
Bug 1252565 part 1. Push the script environment preparer bits up from XPCJSRuntime to CycleCollectedJSRuntime, because we need them on workers to do ctypes on workers properly. r=bholley
2016-03-02 12:38:24 -05:00
Wes Kocher
01574acd0a
Backed out changeset 96580db9b356 (bug 1252565) for test_recursion.html failures
...
MozReview-Commit-ID: 1ycmM8vfG3d
2016-03-01 15:40:46 -08:00
Boris Zbarsky
68dc8de0a0
Bug 1252565. Make dom::WarningOnlyErrorReporter handle workers. r=bholley
2016-03-01 16:53:22 -05:00
Jim Mathies
002407fe45
Bug 1232181
- Add a few win resource helpers. r=aklotz
2016-03-01 12:48:26 -06:00
Nathan Froyd
34f0b7188c
Bug 1252195 - part 2 - use UniqueFreePtr instead of ScopedFreePtr in nsMemoryReporterManager; r=njn
2016-02-29 10:29:42 -05:00
Nathan Froyd
4074e6e3f7
Bug 1251895 - don't race on nsTraceRefcnt's object serial number tables; r=mccr8
...
GetSerialNumber accesses global state through gSerialNumbers. We call
GetSerialNumber under a lock when doing normal object refcount logging.
However, we call GetSerialNumber outside of a lock when we're tracing
individual classes for nsCOMPtr refcount logging, even if we don't
actually care about nsCOMPtr refcount logging. We should call it under
a lock always.
2016-02-29 15:04:36 -05:00
Trevor Saunders
3a75b440db
bug 1252104 - make NS_ERROR_GET_CODE() and NS_ERROR_GET_MODULE() constexpr r=froydnj
2016-02-29 14:49:45 -05:00
Eric Rahm
4c23f5cd8d
Bug 1251482 - Remove remaining references to MOZILLA_XPCOMRT_API from xpcom. r=froydnj
2016-02-26 18:10:56 -08:00
Wes Kocher
72d9604d91
Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
...
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)
MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00
Eric Rahm
ae72b68e62
Bug 1251482 - Remove remaining references to MOZILLA_XPCOMRT_API from xpcom. r=froydnj
2016-02-26 15:31:19 -08:00
Nicholas Nethercote
7203dc64d4
Bug 1251127 - Gracefully handle multiple calls to nsMemoryReporterManager::Init(). r=erahm.
...
--HG--
extra : rebase_source : 3c57eccd9a324bb4e0eab03117ef0ca6159e92b5
2016-02-25 14:47:29 +11:00
Nathan Froyd
7bb9ec5177
Bug 1229985 - remove nsAutoArrayPtr; r=erahm
2015-12-06 10:51:43 -05:00
Ms2ger
5ed06a1f77
Bug 1250917 - Remove NS_SUCCESS_I_DID_SOMETHING; r=bholley
...
It hasn't been used for a while now.
2016-02-25 09:28:06 +01:00
Nicholas Nethercote
334f3c9213
Bug 1249503 - Make WindowsAddressSpaceReporter bloat memory reports less. r=erahm.
...
The WindowsAddressSpaceReporter generates one memory report per segment, and
there can be 10,000+ segments.
This patch changes things so that one memory report is generated per segment
*kind* -- at most a couple of dozen -- rather than one per *segment*.
--HG--
extra : rebase_source : bbe86562ee486fd5fbb5d48ff2cc59a6f4c7b4c9
2016-02-23 18:39:24 +11:00
Bogdan Postelnicu
ccd1e6e5c5
Bug 1021151 - avoid memory leak in NS_GENERIC_AGGREGATED_CONSTRUCTOR_INIT, use nsAutoPtr instead of naked ptr. r=Ehsan
...
MozReview-Commit-ID: 6iU7ikbgjEn
--HG--
extra : rebase_source : bfd77469f91e81c26532819596fa5a19f8d4a766
2016-02-23 14:12:22 +02:00
Bogdan Postelnicu
e4d1a83ade
Bug 1250134 - assert mJSRuntime when IsGrayJS() is true. r=mccr8
...
MozReview-Commit-ID: B5046aj61jx
--HG--
extra : rebase_source : 7ddc7be40030dec122643cae4d1042fe611efc2d
2016-02-23 09:28:52 +02:00
Andrew McCreight
c0010835a7
Bug 1247679, part 2 - Null check inside TraceCallbackFunc::Trace. r=smaug
2016-02-22 10:11:02 -08:00
Andrew McCreight
76d514e54c
Bug 1247679, part 1 - Make ClearJSHolder publicly inherit from TraceCallbacks. r=smaug
2016-02-22 10:11:02 -08:00
Olli Pettay
cd9e373713
Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8
...
--HG--
extra : rebase_source : e9138c0e1c8861847af2cb8c44800973c1c9ee0d
2016-02-19 20:17:25 +02:00
Carsten "Tomcat" Book
0ed07869c5
Backed out changeset dc704cb50a24 (bug 1249451) for bustage
2016-02-19 14:18:37 +01:00
Olli Pettay
27f059ed50
Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8
...
--HG--
extra : rebase_source : ed241e50718cab2717d9ed42f2c46cdfa63a9d6a
2016-02-19 13:09:20 +02:00
Andrew McCreight
8705772a81
Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug
2016-02-18 15:21:48 -08:00
Honza Bambas
06ad5a472f
Bug 961430 - Allow pid be added to the log file name automatically. r=froydnj
2016-02-18 07:56:00 -05:00
Andrea Marchesini
4bf350a0ba
Bug 1247122 - Propagate the NS_ERROR_OUT_OF_MEMORY from CycleCollectedJSRuntime CTOR, r=khuey
2016-02-14 13:30:25 +00:00
Aidin Gharibnavaz
686438c658
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-10 08:23:00 +01:00
Terrence Cole
90bd4d3cee
Bug 1247381 - Restore a CC optimization dropped in bug 1105069 part 7; r=mccr8
...
--HG--
extra : rebase_source : 1579c3b0af0563dfa5539b5360a23254451c3978
2016-02-10 12:46:52 -08:00
Andrew McCreight
55351409af
Bug 1245673 - Remove useless NS_INT32_TO_PTR from DumpSerialNumbers. r=froydnj
2016-02-10 10:29:20 -08:00
Andrew McCreight
da4c77b206
Bug 1243949 - Fatally assert when we fail to create an XPCOM log. r=froydnj
2016-02-10 10:29:20 -08:00
Karl Tomlinson
a02ee88552
bug 1245745 include libpulse version in update URL r=glandium
...
--HG--
extra : rebase_source : 24c37042fb74519dd392515386f0afeec289db4e
2016-02-09 14:35:03 +13:00
Boris Zbarsky
5ba2fc1250
Bug 1243001 part 8. Tell SpiderMonkey to put its promise jobs into the CycleCollectedJSRuntime job queue. r=peterv
...
This will run the SpiderMonkey promise jobs more or less the same way that we
run Promise jobs right now, including using a Web IDL callback for the actual
invocation.
2016-02-09 17:40:31 -05:00
Carsten "Tomcat" Book
5b358688b7
Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
...
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
69cf7e035f
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
...
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Ehsan Akhgari
05b69db9be
Remove the workaround added in bug 1022420 now that clang-cl understands __declspec(novtable)
2016-02-06 16:57:58 -05:00
Brian Birtles
73e4706ab3
Bug 1239889 part 1 - Throw if the animation target does not have a current document; r=heycam
...
This is just a temporary measure to avoid a failed assertion / crash until we
fix bug 1245748.
2016-02-05 14:11:04 +11:00
Honza Bambas
1e63bfcb77
Bug 885952 - Add thread name to MozLogging, r=froydnj
2016-02-02 07:21:00 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Xidorn Quan
dd6be4d4ca
Bug 1241901 part 4 - Stop using nsAutoPtr for holding primitive arrays. r=froydnj
...
--HG--
extra : source : 683ad831dc3e7fc197cbfe1b53665c777b3158ab
2016-01-30 10:33:41 +11:00
Chris Pearce
b3256c287c
Bug 1200514 - Run remaining stable state runnables after final cycle collection. r=froydnj,mccr8
...
--HG--
extra : amend_source : 877c598157dcef100cc139cbc62cde670f9ce16a
2016-01-13 11:37:57 +13:00
Bill McCloskey
1b1109922e
Bug 1242097 - Support sync module for logging (r=erahm)
2016-01-27 15:08:56 -08:00
Wes Kocher
5648c229cc
Backed out 10 changesets (bug 1242097, bug 1240985) for near-permafailing in test_plugin_focus.html
...
Backed out changeset 30f1acd9387f (bug 1240985)
Backed out changeset 6d7f80a057f0 (bug 1240985)
Backed out changeset c3dfc2c674ff (bug 1240985)
Backed out changeset b7f2ce03b34e (bug 1240985)
Backed out changeset 2c0c0ed35656 (bug 1240985)
Backed out changeset 85c8cb422bad (bug 1240985)
Backed out changeset 06b4cb890ab0 (bug 1240985)
Backed out changeset f10c0445c450 (bug 1240985)
Backed out changeset 62eaf89ab82f (bug 1242097)
Backed out changeset b94c1a472d46 (bug 1240985)
--HG--
extra : commitid : 2iDH7HLUMiO
2016-01-26 09:55:59 -08:00
Bill McCloskey
b7d62fc246
Bug 1242097 - Support sync module for logging (r=erahm)
2016-01-25 21:49:42 -08:00
Landry Breuil
ac9c84f6f8
Bug 1242151: using va_list needs <stdarg.h> at least on OpenBSD r=erahm
2016-01-24 10:56:42 +01:00
Phil Ringnalda
6aeccf0426
Merge f-t to m-c, a=merge
2016-01-23 18:11:37 -08:00
Sylvestre Ledru
ab4e3a0d42
Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
...
--HG--
extra : rebase_source : 7d2cc56b6553cd7a8d848d3c660f30735bd82eec
2016-01-22 16:58:49 +01:00
Tom Tromey
5412728905
Bug 757969 - use __thread in ThreadLocal; r=froydnj
2016-01-22 10:33:44 -07:00
Nick Fitzgerald
e5ed8f47ec
Bug 1233831 - Part 3: Install a callback to trace nursery collections; r=mccr8
...
This commit makes CycleCollectedJSRuntime install a nursery collection callback
which traces nursery collections with a new `mozilla::TimelineMarker` subclass.
2016-01-19 12:48:22 -08:00
Eric Rahm
1bf5b93a21
Bug 1239941 - Copy va_list before using it in LogModuleManager::Print. r=froydnj
2016-01-15 10:14:26 -08:00
Randell Jesup
5cb8d2ec15
Bug 1237794: Extend ClearOnShutdown() to allow specifying the shutdown phase r=froyd
2016-01-15 13:12:07 -05:00
Mats Palmgren
3f054f833d
Bug 1239516 - Use nsDependentCSubstring for wrapping a slice of a char buffer. r=karlt
2016-01-14 23:11:44 +01:00
Eric Rahm
ad494f87fa
Bug 1239212 - Append missing newlines to log messages. r=froydnj
...
--HG--
extra : rebase_source : 35ef04d2c4362d79d1d03d53fc7cce2459ef9437
2016-01-13 10:58:44 -08:00
Terrence Cole
3a07971436
Bug 1238786 - Part 2: We no longer need to null check before using trace APIs; r=smaug
...
--HG--
extra : rebase_source : 5fdbdaa7be739afd93294b729d878ed33c55b5ce
2016-01-12 13:07:54 -08:00
Eric Rahm
1828042c1f
Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell
2016-01-05 13:05:19 -08:00
Phil Ringnalda
52aade6b43
Back out 3e168e5a04bf (bug 1174972) for build bustage
...
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
f8d0e8949c
Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell
2016-01-05 13:05:19 -08:00
Michael Layzell
d7f055a623
Bug 1226376 - Part 2: Annotate StaticMutex with MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS, r=nfroyd
2016-01-08 15:34:24 -05:00
Terrence Cole
fd0fcea703
Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug
2015-12-30 11:31:16 -08:00
Eric Rahm
03ab641f88
Bug 1223222 - Part 3: Remove usage of PR_NewLogModule in mozilla LogModule code. r=froydnj
2016-01-05 12:16:03 -08:00
Eric Rahm
b22e370676
Bug 1223222 - Part 1: Add NSPRLogModulesParser. r=froydnj
...
Adds basic parser for handling of the NSPR log module env var format.
2015-12-21 17:10:26 -08:00
Eric Rahm
9664d9a74d
Bug 1233881 - Support dynamically setting log levels at runtime via prefs. r=froydnj
...
Adds support for changing log levels at runtime via 'logging.*' preferences.
2015-12-22 15:09:41 -08:00
Nicholas Nethercote
5a752050c8
Bug 1237169 (follow-up) - Fix static analysis bustage. r=me.
2016-01-06 15:31:46 -08:00
Nicholas Nethercote
3074545c18
Bug 1237169 - Remove some unused parameters in and around xpcom/base/. r=mccr8.
...
--HG--
extra : rebase_source : a3fd151aaecc1a21d14d51ce85c25413a6c3df5f
2016-01-05 19:32:28 -08:00
Terrence Cole
97c4c6520f
Backout 7621c3ea95cb11e1c376a9f705accc0f90057c0a (bug 1235923) for build bustage on a CLOSED TREE.
...
--HG--
extra : rebase_source : 6c54aa7e1af75c270ab2b6833b56c780c537e297
2016-01-06 12:05:06 -08:00
Terrence Cole
d38e840e6f
Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug
2015-12-30 11:31:16 -08:00
Terrence Cole
bb224242a8
Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
...
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Felix Janda
c40483da3d
Bug 1203272 - Fix build of nsMemoryReporterManager on linux systems without mallinfo(). r=glandium,njn.
...
--HG--
extra : rebase_source : 704d0eb36b63810b890361b1785b5bf3f6e8e324
2016-01-01 11:10:54 +01:00
Wes Kocher
a69ea37914
Backed out 2 changesets (bug 1235598) for linux reftest bustage
...
Backed out changeset 3bcd3c276785 (bug 1235598)
Backed out changeset 80cd10a8b3d7 (bug 1235598)
--HG--
extra : commitid : DZRlFy6bH2m
extra : rebase_source : 3479cd1146e58115883f2329861647a962d162cc
2015-12-31 15:51:13 -08:00
Terrence Cole
9d97726f6c
Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
...
--HG--
extra : rebase_source : c18f7e97d09f0cd91d0d837d2cdc65926cd3de64
2015-12-30 08:52:14 -08:00
Olli Pettay
5ca565690e
Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
2015-12-31 15:21:49 +02:00
Wes Kocher
792ca14825
Backed out changeset 0d55a6e4e98e (bug 1120016) for 980 b2g hazards
...
--HG--
extra : commitid : 27OIHVsa17S
2015-12-30 16:34:18 -08:00
Terrence Cole
2d98949f4f
Backout Bug 1235598 Part 2 because of merge bustage on a CLOSED TREE
2015-12-30 15:05:24 -08:00
Terrence Cole
4710ce6d97
Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
...
--HG--
extra : rebase_source : fba9dbd3f6bc7b36074f58d11c411deb84c1ff1e
2015-12-30 08:52:14 -08:00
Olli Pettay
2066f6d7b3
Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
...
--HG--
extra : rebase_source : 3d51b7fc9962a93eb6071328db84b5b327225246
2015-12-30 19:16:13 +02:00
Andrew McCreight
84e0c59589
Bug 1231964 - Move CC participant code that touches JS out of mozglue. r=smaug
...
The JS engine does not export symbols outside of XUL, so having these
defined inside mozglue apparently causes linking errors on some
platforms with the patches in bug 1120016.
This patch moves enough methods outside of mozglue that the patch in
that other bug will still link on all platforms, without moving so
much out that there are other linking errors.
--HG--
rename : xpcom/glue/nsCycleCollectionParticipant.cpp => xpcom/base/nsCycleCollectorTraceJSHelpers.cpp
2015-12-18 14:22:01 -08:00
Mike Hommey
6e154bf9b9
Bug 1227023 - Include the Gtk+3 version in update URL if available on Gtk+2 builds. r=karlt
...
Instead of giving the Gtk+2 version.
2015-12-05 11:04:21 +09:00
Nathan Froyd
c381a6b86c
Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
...
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Boris Zbarsky
29345faced
Bug 1229664. Drop the concept of inner exceptions from Exception/DOMException. r=bholley
2015-12-02 13:52:59 -05:00
Nathan Froyd
319ac39f93
Bug 1229099 - use snprintf instead of JS_snprintf in xpcom/; r=mccr8
2015-11-30 13:54:03 -05:00
Nick Fitzgerald
b8340cdc7c
Bug 1225618 - Do not capture stacks for cycle collection timeline markers; r=vporof
2015-11-23 16:50:56 +01:00
Francois Marier
67506f65a6
Bug 1216723 - Add a new -forbid- Safe Browsing list type. r=gcp,r=smaug
2015-11-20 20:24:50 -08:00
Eric Rahm
0ac3743813
Bug 1224685 - Add |resident-unique| measurement to Windows. r=njn
2015-11-13 13:44:48 -08:00
Eric Rahm
53da6e4ad3
Bug 1223927 - Add resident-unique measurement to OS X. r=njn
2015-11-11 14:07:30 -08:00
Gijs Kruitbosch
35bed1c0ce
Bug 1209591 - allow loadURI consumers to expose whether an error page was immediately loaded as result of an error, r=smaug,mak
...
--HG--
extra : commitid : 9tlkWrUKl12
extra : rebase_source : bb5b476dc28cebc66a99d23934a5214530e9a008
extra : amend_source : f62e5a91df5af9eea893fbb9a13980e9fdd56a38
2015-10-27 16:44:24 +01:00
Boris Zbarsky
2c6c586ca9
Bug 1219749. Add a way to faithfully propagate the "exception is already on JSContext" state through an ErrorResult. r=peterv
2015-11-09 20:47:05 -05:00
Wes Kocher
e943bc8e33
Merge m-c to inbound a=merge
...
--HG--
extra : commitid : IcbfYN5aCjt
2015-11-06 15:13:35 -08:00
Carsten "Tomcat" Book
f2961bc526
Merge mozilla-central to b2g-inbound
2015-11-06 14:00:33 +01:00
Fabrice Desré
a76d9cfc62
Bug 1220344 - remote some of nsSystemInfo to make it e10s ready on Android r=nchen,froydnj
2015-11-04 11:08:14 -08:00
Carsten "Tomcat" Book
8bb69a1d1d
Backed out changeset 8d3ff1d1a809 (bug 1220344) for failing android tests
...
--HG--
extra : rebase_source : a1d9f59c12c44ccf24af88566c6531e08a11db4e
2015-11-05 11:48:06 +01:00
Fabrice Desré
04ce4a4632
Bug 1220344 - remote some of nsSystemInfo to make it e10s ready on Android r=nchen,froydnj
2015-11-04 11:08:14 -08:00
Kit Cambridge
1a2d174fbf
Bug 1206302 - Use `DOMException` for Push errors. r=mt
...
--HG--
extra : commitid : 12nCKPtERml
extra : rebase_source : 1d59f113235a98ca30653d2c935e0cc2e7bc8931
2015-11-05 10:38:35 -08:00
Jan de Mooij
a84c33ecb0
Bug 1125423 part 1 - Attach WindowProxies to globals instead of using innerObject/outerObject hooks. r=bz,luke
2015-11-06 19:03:51 +01:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Chris Peterson
4cbe614b32
Bug 1220035 - Fix -Wimplicit-fallthrough warnings in xpcom. r=mccr8
...
xpcom/base/nsDebugImpl.cpp:458:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsCheapSets.h:139:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsPersistentProperties.cpp:232:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:360:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:766:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1658:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/ds/nsVariant.cpp:1661:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:355:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/glue/nsTextFormatter.cpp:362:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:85:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
xpcom/io/nsWildCard.cpp:401:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-29 21:31:32 -07:00
Ben Kelly
a4dd10345e
Bug 1215140 P8 Remove now unnecessary interception values from ErrorList.h. r=bz
2015-10-29 19:53:25 -07:00
Makoto Kato
e5153e1c2b
Bug 1218315 - Use L"..." instead of MOZ_UTF16(...) for MSVS2015. r=nfroyd
2015-10-28 22:36:40 +09:00
Makoto Kato
0298c31d73
Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on xpcom. r=nfroyd
2015-10-28 14:29:49 +09:00
Nathan Froyd
4c29b7694f
Bug 1217940 - remove BindingUtils.h from CycleCollectedJSRuntime.cpp; r=mccr8
2015-10-23 14:01:02 -04:00
Cameron McCormack
235db06383
Bug 1208951 - Part 9: Implement KeyframeEffectReadOnly constructor. r=bzbarsky r=birtles
2015-10-22 19:22:38 +11:00
Eric Rahm
e6f7a67577
Bug 1174785 - Part 1: Add LogModule, LogModuleManager, and LazyLogModule. r=froydnj
...
The logging interface is moved to xpcom/base, a LogModule wrapper for PR_Log is
added, a thread-safe LogModuleManager is added, and a LazyLogModule class used
to lazily load log modules in a thread-safe manner is added.
--HG--
rename : xpcom/glue/Logging.h => xpcom/base/Logging.h
extra : rebase_source : 89b76664d9477e2c894448cdea4dae1c61f8ca24
2015-10-19 12:22:11 -07:00
Eric Rahm
c0ca405938
Bug 1215629 - Remove nsDebug logger. r=froydnj
2015-10-16 16:23:49 -07:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Shih-Chiang Chien
e50f7091ee
Bug 1199592 - support TV device type in UA string. r=fabrice.
...
--HG--
extra : rebase_source : 7999c1a81fd7e297b88d3b780c252b70bf265d23
2015-10-05 19:58:00 +02:00
Eric Rahm
80fca20565
Bug 1194555 - Part 6: Run reporters asynchronously. r=njn,jld,ted
2015-10-14 16:52:59 -07:00
Eric Rahm
e93f0f86a3
Bug 1194555 - Part 5: Add option for async memory reporters. r=njn
2015-10-14 16:52:58 -07:00
Eric Rahm
9feffe31c7
Bug 1194555 - Part 4: Rename GetReportsState PendingProcessesState. r=njn
2015-10-14 16:52:57 -07:00
Eric Rahm
b257c6378a
Bug 1194555 - Part 3: Remove |getReportsForThisProcess| from the nsIMemoryReporterManager interface. r=njn
...
|getReportsForThisProcess| differs from |getReports| in that it is limited to current process and is synchronous. When asynchronous memory reporters are added the function will no longer be able tobe synchronous. There isn't much utility in only measuring the current process, so we can remove the function and switch existing users to |getReports|.
2015-10-14 16:52:55 -07:00
Eric Rahm
acd4358a2a
Bug 1194555 - Part 2: Remove |explicit| attribute from nsIMemoryReporterManager. r=njn
...
The calculation of |explicit| relies on the synchronous |getReportsForThisProcess|, once we have asynchronous reporters this will no longer work. As it is currently referenced in the about::memory tests we can just remove it.
2015-10-14 16:52:54 -07:00
Eric Rahm
61d0f893cd
Bug 1194555 - Part 1: Remove RunReportersForThisProcess. r=njn
...
RunReportersForThisProcess is no longer used and will no longer work once we have async reporters.
2015-10-14 16:52:53 -07:00
Eric Rahm
45097b163a
Bug 1194555 - Part 0: Cleanup GetReportsState constructor. r=njn
...
Move GetReportsState ctor to the impl so that mChildrenPending doesn't have
to be heap allocated.
2015-10-14 16:52:52 -07:00
Boris Zbarsky
af065c06f0
Bug 1213289 part 3. Add a way to throw a DOMException with a custom message on ErrorResult. r=bkelly
2015-10-09 16:48:10 -04:00
Ehsan Akhgari
1869e89340
Bug 1212636 - Add a better error message for the content corrupcted error caused by the Promise being passed to FetchEvent.respondWith; r=bkelly
2015-10-07 18:06:26 -04:00
Wes Kocher
a69f1f52e7
Backed out 7 changesets (bug 1194555) for xpcshell failures
...
Backed out changeset e77be333f4fb (bug 1194555)
Backed out changeset 11951462a37c (bug 1194555)
Backed out changeset 99b27aa952c5 (bug 1194555)
Backed out changeset 70a8ed3b6a45 (bug 1194555)
Backed out changeset 748bfebe81e7 (bug 1194555)
Backed out changeset cbaac05a2934 (bug 1194555)
Backed out changeset fcbfd1379fcd (bug 1194555)
2015-10-06 14:40:51 -07:00
Eric Rahm
f2e4cb7dfe
Bug 1194555 - Part 6: Run reporters asynchronously. r=njn,jld
2015-10-06 11:23:36 -07:00
Eric Rahm
d3e60f2da6
Bug 1194555 - Part 5: Add option for async memory reporters. r=njn
2015-10-06 11:23:35 -07:00
Eric Rahm
6fd2bbb5e8
Bug 1194555 - Part 4: Rename GetReportsState PendingProcessesState. r=njn
2015-10-06 11:23:34 -07:00
Eric Rahm
16b67b6d6c
Bug 1194555 - Part 3: Remove |getReportsForThisProcess| from the nsIMemoryReporterManager interface. r=njn
...
|getReportsForThisProcess| differs from |getReports| in that it is limited to current process and is synchronous. When asynchronous memory reporters are added the function will no longer be able tobe synchronous. There isn't much utility in only measuring the current process, so we can remove the function and switch existing users to |getReports|.
2015-10-06 11:23:33 -07:00
Eric Rahm
57bd025868
Bug 1194555 - Part 2: Remove |explicit| attribute from nsIMemoryReporterManager. r=njn
...
The calculation of |explicit| relies on the synchronous |getReportsForThisProcess|, once we have asynchronous reporters this will no longer work. As it is currently referenced in the about::memory tests we can just remove it.
2015-10-06 11:23:32 -07:00
Eric Rahm
e15a1912e0
Bug 1194555 - Part 1: Remove RunReportersForThisProcess. r=njn
...
RunReportersForThisProcess is no longer used and will no longer work once we have async reporters.
2015-10-06 11:23:31 -07:00
Eric Rahm
dc17e5a1b8
Bug 1194555 - Part 0: Cleanup GetReportsState constructor. r=njn
...
Move GetReportsState ctor to the impl so that mChildrenPending doesn't have
to be heap allocated.
2015-10-06 11:23:30 -07:00
Andrew McCreight
e2ebefc242
Bug 1207368 - Use swap() instead of forget() to remove MessageElement::mMessage. r=froydnj
...
Using forget() to extract mMessage from MessageElement ends up going
from nsCOMPtr<T> to already_AddRefed<T> to nsCOMPtr<T>. For the second
step, the compiler can't tell that the already_AddRefed<T> came from a
canonical nsCOMPtr, so it calls Assert_NoQueryNeeded() in debug
builds. This in turn causes a QI, which does an AddRef. That is bad
because we're not on the main thread, and mMessage is
main-thread-only, so we get an assertion.
This patch works around that by using swap directly between two
nsCOMPtr<>, which avoids the Assert_NoQueryNeeded().
I called the method "swapMessage" rather than "swap" to emphasize that
we are not swapping the whole MessageElement, but just one part of
it. I find the existing forget() name to be confusing.
2015-10-02 14:47:13 -07:00
Andrew McCreight
d4e3c0e2c4
Bug 1208157, part 2 - Make the fields of nsCycleCollector private. r=smaug
...
These are accidentally exposed by the NS_DECL.
2015-09-25 10:43:21 -07:00
Andrew McCreight
f288f83204
Bug 1208157, part 1 - Add and use nsCycleCollector::IsIdle() predicate. r=smaug
2015-09-25 10:43:21 -07:00
Andrew McCreight
adf56106da
Bug 1202670 - Move most of nsCycleCollector::RemoveObjectFromGraph into CCGraph. r=smaug
2015-09-25 10:43:21 -07:00
Mike Hommey
538706caba
Bug 1203840 - Trigger dirty pages purge after CC. r=njn,r=smaug,r=mccr8
...
Jemalloc 4 purges dirty pages regularly during free() when the ratio of dirty
pages compared to active pages is higher than 1 << lg_dirty_mult. We set
lg_dirty_mult in jemalloc_config to limit RSS usage, but it also has an impact
on performance.
So instead of enforcing a high ratio to force more pages being purged, we keep
jemalloc's default ratio of 8, and force a regular purge of all dirty pages,
after cycle collection.
Keeping jemalloc's default ratio avoids cycle-collection-triggered purge to
have to go through really all dirty pages when there are a lot, in which case
the normal jemalloc purge during free() will already have kicked in. It also
takes care of everything that doesn't run the cycle collector still having
a level of purge, like plugins in the plugin-container.
At the same time, since jemalloc_purge_freed_pages does nothing with jemalloc 4,
repurpose the MEMORY_FREE_PURGED_PAGES_MS telemetry probe to track the time
spent in this cycle-collector-triggered purge.
2015-09-20 17:43:43 +09:00
Peter Van der Beken
6b175b5c02
Fix for bug 527558 (Crash [@ xul.dll\!nsDependentCSubstring::nsDependentCSubstring]). r=sicking.
...
--HG--
extra : rebase_source : f90ade60ba73a7cfd8fc2137f5d14e26c3382b76
2009-11-15 14:50:09 +01:00
Andrew McCreight
ac5e9c32f9
Bug 1205348 - Always do shutdown CCs when NS_FREE_PERMANENT_DATA is defined. r=smaug
2015-09-16 10:10:00 +02:00
Chris Peterson
0dbaae1ce2
Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8
2015-09-07 23:56:16 -07:00
Nicholas Nethercote
2ee4fd783b
Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru.
...
--HG--
extra : rebase_source : 3cdc975507170d783b02d70f7c7d95c6bf2e1bcd
2015-09-14 14:23:47 -07:00
Nicholas Nethercote
479244f7c9
Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
...
--HG--
extra : rebase_source : 41eb939bfb5c925cba58b1af57abce9a4e5fdb30
2015-09-14 14:23:12 -07:00
Nicholas Nethercote
fcfdd8f54b
Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.
...
--HG--
extra : rebase_source : 770e1f49a451ecbadd778e071b204611e27cf701
2015-05-21 00:34:25 -07:00
Ehsan Akhgari
97be810099
Bug 1196430 follow-up: Hide the usage of gCodeAddressService behind #ifdef MOZ_STACKWALKING
...
This is needed to fix the build bustage on B2G Desktop Windows.
Landed on a CLOSED TREE
2015-09-11 00:06:40 -04:00
Nathan Froyd
89639e1fda
Bug 1196430 - part 8 - use less reinterpret_cast in nsTraceRefcnt.cpp; r=mccr8
2015-08-26 22:57:32 -04:00
Nathan Froyd
3953358c0b
Bug 1196430 - part 5 - dump allocation stacks for leaked objects in XPCOM_MEM_LOG_CLASSES; r=mccr8
2015-08-26 19:10:22 -04:00
Nathan Froyd
d6c3776152
Bug 1196430 - part 4 - record allocation stacks for classes in XPCOM_MEM_LOG_CLASSES; r=mccr8
2015-08-26 18:47:03 -04:00
Nathan Froyd
04974cb31c
Bug 1196430 - part 3 - remove unnecessary nsString.h include from nsTraceRefcnt.cpp; r=mccr8
2015-08-26 18:28:35 -04:00
Nathan Froyd
e9b6ac22f9
Bug 1196430 - part 2 - give SerialNumberRecord a proper constructor; r=mccr8
...
Using C++ style is so much nicer for these sorts of things. This change
also paves the way for easily using non-POD things in SerialNumberRecord.
2015-08-26 18:25:35 -04:00
Nathan Froyd
1acef79801
Bug 1196430 - part 1 - rename serialNumberRecord to SerialNumberRecord; r=mccr8
...
This is a small cleanup to make the class name conform to coding standards.
2015-08-26 18:24:13 -04:00
Nikhil Marathe
cd9d0eb7ab
Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
...
Update web-platform-tests expected data
--HG--
extra : commitid : 4dM6kivKeAc
extra : rebase_source : 64e40258a98b79064d5073422811fb8e1f688735
2015-09-04 12:00:24 -07:00
Nicholas Nethercote
ffb1fefc9f
Bug 1202526 (part 8) - Use PLDHashTable::RemoveEntry() in the cycle collector. r=mccr8.
...
This avoids repeating the hash table search in order to remove a CC graph
entry, which is good because it's a common operation.
2015-09-07 21:15:32 -07:00
Milan Sreckovic
9a9792e17d
Bug 1128472 - Part 3. Vendor string on windows. r=aklotz
2015-09-03 13:10:00 +02:00
Milan Sreckovic
79db27187c
Bug 1128472 - Part 2. Linux support. r=gfritzsche
2015-09-08 14:35:00 +02:00
Milan Sreckovic
c2e36204f0
Bug 1128472 - Part 1. Mac and Win for model, stepping, cores, cache, cpu speed; VM max on Win only, vendor on Mac only. r=gfritzsche
2015-09-01 14:48:00 +02:00
Terrence Cole
0716d4888f
Bug 1199843 - Part 3: Strongly type JS::TraceChildren; r=jonco r=mccr8
...
--HG--
extra : rebase_source : c779897338dc4b73dca98517acb8d0eef7e0d7a5
2015-09-02 11:34:36 -07:00
Andrew McCreight
e46abbfe4f
Bug 1200795, part 2 - Add memory reporting for CCGraph::mPtrToNodeMap. r=njn
2015-09-04 09:45:44 -07:00
Andrew McCreight
bd863a70b2
Bug 1200795, part 1 - Eliminate excessive detail from cycle collector graph memory reporting. r=njn
2015-09-04 09:45:44 -07:00
Alphan Chen
daa714c8ea
Bug 1154435 - [nsGZFileWriter] Add one more mode for writing a GZFile (Create/Append). r=froydnj
2015-06-05 11:20:16 +08:00
Alphan Chen
a7f16b9ea6
Bug 1154435 - [nsDumpUtil] Refine nsDumpUtils::OpenTempFile to make this function more flexible. r=dhylands
...
- Add one more mode in this function (CREATE/CREATE_UNIQUE)
- export the header file for the usage of other components
2015-06-04 14:47:09 +08:00
Ben Kelly
10350eb242
Bug 1184607 P4 Handle the RequestRedirect mode during service worker interception. r=nsm
...
* * *
Bug 1184607 P4 interdiff 001 fix manual redirect assertion for navigations r=nsm
* * *
Bug 1184607 P4 interdiff 002 dom/worker nits
2015-08-31 14:26:29 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Kyle Huey
e5b6091772
Bug 1195755: Don't assert recursion depth sanity on Mac, because there is none. r=me
...
--HG--
extra : rebase_source : 6c0c24ead27200b30302828dea22c50219c79a2c
2015-08-21 19:56:56 -07:00
Nicholas Nethercote
c8578157c2
Bug 1194061 - Implement "system-heap-allocated" reporter for Windows. r=dmajor.
...
--HG--
extra : rebase_source : a0f31c1ca1c6671d592c73d2473dcc5669022077
2015-08-19 20:35:17 -07:00
Xidorn Quan
9960d37ffb
Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj
...
--HG--
extra : source : 9c567ed00fcf2433e484325bab9a18322718b0da
2015-08-20 10:30:10 +10:00
Chris Manchester
f2dcab6039
Bug 1131325 - Move system country code from nsIGfxInfo2 to a more appropriate location. r=aklotz,smichaud
...
--HG--
extra : commitid : Jglg9X6ykB1
2015-07-28 15:45:34 -07:00
Nathan Froyd
5588065ae9
Bug 1189829 - fix quadratic behavior in nsConsoleService; r=erahm
2015-08-17 21:05:48 -04:00
Andrew McCreight
2da6cab23a
Bug 1190483 - Followup to address review comment.
2015-08-14 10:04:41 -07:00
Andrew McCreight
066918123c
Bug 1190483 - Add a way to record a DMD log late in shutdown. r=erahm
2015-08-14 10:00:04 -07:00
Mike Conley
7421d14843
Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm
...
--HG--
extra : commitid : IhjNJOOtmms
extra : rebase_source : 6b0ba29e866dcf63a3054eb955ece082cbbeda13
extra : amend_source : 70bcf59b1f4b1d7a3a8ec4183b3b9710eedfb5f9
2015-08-06 17:36:54 -04:00
Nicholas Nethercote
01a073b5a2
Bug 828844 - Add a "system-heap-allocated" memory report on Linux. r=glandium.
...
This gives zero when jemalloc is enabled and non-zero when jemalloc is disabled
(e.g. I got 83 MiB at start-up, which sounds plausible).
--HG--
extra : rebase_source : f39a15472d48643f57a77f1df03e4a29543d0867
2015-08-12 17:44:00 -07:00
Francois Marier
34de332db0
Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
...
Code changes
2015-08-12 20:19:11 -07:00
Terrence Cole
2c05aff66d
Bug 1193032 - Part 2: Make unlimited SliceBudget initialization explicit; r=ehoogeveen,r=mccr8
2015-08-11 08:42:24 -07:00
Kyle Huey
76e3009ab8
Bug 1179909: Refactor stable state handling. r=smaug
...
This is motivated by three separate but related problems:
1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).
2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).
3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.
The solve this, this patch does the following:
1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Aryeh Gregor
80ea0a3e53
Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
...
--HG--
rename : dom/bindings/OwningNonNull.h => xpcom/base/OwningNonNull.h
2015-08-05 15:28:27 +03:00
Birunthan Mohanathas
7315345693
Bug 1191100
- Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
James Cheng
315911c26e
Bug 1189231 - Impl operator->* to nsAutoPtr. r=nfroyd
2015-07-30 21:02:00 -04:00
Nicholas Nethercote
d98d14fa1e
Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
--HG--
extra : rebase_source : f98420176f50990bbc5a25e35788328154cfeb00
2015-07-30 21:19:57 -07:00
Jesse Ruderman
7ed9e0fe1b
Bug 1024259: Use NS_FREE_PERMANENT_DATA more consistently. r=mccr8
2015-07-31 12:11:48 -07:00
Kyle Huey
8f1d6bf154
Bug 1152574: Fix console service discarding to run when it is actually safe to do so (off of inner-window-destroyed). Also add a backstop at xpcom-shutdown to discard any cycle collected messages before it is too late. r=froydnj
...
--HG--
extra : rebase_source : 689ed129fd8df604385dde4fe9d9477f14f2fced
2015-07-31 06:49:27 -07:00
Andrew McCreight
3127d66102
Bug 1189122 - Assert when we Suspect() when a CC scan is in progress. r=smaug
...
This can cause leaks that are invisible to our XPCOM leak detection system.
To avoid this, classes should not addref or release in their Traverse methods.
--HG--
extra : rebase_source : acd0b070c63cbb4111c165d6b131b8e3b822773a
2015-07-29 20:48:00 +02:00
Nicholas Nethercote
87b80f8c66
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Bobby Holley
4762225b99
Bug 1188696
- Remove the XPCOM dependencies in nsRefPtr.h. r=froydnj
2015-07-29 10:44:58 -07:00
Ryan VanderMeulen
fb6b2747d5
Bug 1180017 - Fix up the badly-horked backout and re-land.
...
CLOSED TREE
--HG--
extra : amend_source : 0b7ac18429b248cf05cfe33f6b2f6efdf1602c38
extra : histedit_source : bdb11dafa100809ec17491e5711fb0b507e023c6%2C5e4134650a804859dc8b3078688fa4655052263f
2015-07-29 12:31:47 -04:00
Jim Blandy
4e8fc0bdcb
Bug 1180017 - Give GCCellPtr is<T> and to<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
2015-07-03 15:06:23 -07:00
Carsten "Tomcat" Book
25a2a75a56
Backed out changeset 465793bc6fcf (bug 1180017) for suspicion of causing bug 1188799
2015-07-29 15:27:12 +02:00
Jim Blandy
ff7cc06ef6
Bug 1180017: Give GCCellPtr is<T> and as<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
...
--HG--
extra : rebase_source : 4a381c5d8427ad2995426e65c69af1597b1557c2
2015-07-07 09:52:01 -07:00
Ehsan Akhgari
7a81d59cb2
Bug 1188203 - Fix more constructors in XPCOM; r=froydnj
2015-07-28 12:24:37 -04:00
Nate Hughes
94f8966c4b
Bug 986302 - Add memory reporting for HPACK tables r=hurley r=njn
2015-07-17 14:38:10 -07:00
Andrew McCreight
7c34797069
Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug
2015-07-21 11:31:44 -07:00
Andrew McCreight
6ea0227583
Bug 1185144 - nsConsoleService::LogMessageWithMode() should release the retired message on the main thread. r=froydnj
...
Also, add release asserts that the other methods that addref or release console messages are only run on the main thread.
Finally, add an assert that nsScriptErrorWithStack is only created on the main thread.
2015-07-21 07:50:09 -07:00
Carsten "Tomcat" Book
f7531b86f7
Backed out changeset 8b90b21e0c64 (bug 986302) for static build failures
2015-07-21 08:53:37 +02:00
Nate Hughes
3f6e8d3da5
Bug 986302 - Add memory reporting for HPACK tables. r=hurley r=njn
2015-07-17 14:38:10 -07:00
Kyle Huey
ee4f5ba9fb
Bug 1185470: Remove 'Get' prefixes from hashtable iterator methods. r=froydnj
2015-07-20 20:21:28 +08:00
Carsten "Tomcat" Book
0551dfb053
merge mozilla-inbound to mozilla-central a=merge
2015-07-20 11:36:42 +02:00
Victor Porof
f11ae1a898
Bug 1183228 - Use separate files for AutoTimelineMarker and AutoGlobalTimelineMarker, r=smaug
2015-07-17 15:51:39 -04:00
Ryan VanderMeulen
fa5776b708
Merge m-c to fx-team. a=merge
2015-07-15 13:30:09 -04:00
Kan-Ru Chen
c825f41c31
Bug 1181518 - Change the reason for memory-pressure fired during priority change. r=gsvelto
2015-07-15 17:07:39 +08:00
Ben Kelly
1d8798cbc9
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-14 13:11:26 -07:00
Ben Kelly
e2321797dc
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-14 13:11:26 -07:00
Andrew McCreight
807cd2fbe2
Bug 1182318 - Part 2: Remove Closure from CycleCollectedJSRuntime. r=smaug
...
Closure is now just a wrapper around a single boolean, so instead pass a pointer to the boolean.
2015-07-14 08:01:00 -04:00
Andrew McCreight
ee6ab85145
Bug 1182318 - Part 1: Remove Closure::mCb. r=smaug
...
This field no longer needs to be passed in the closure thanks to the iterator.
2015-07-14 08:01:00 -04:00
Alexandre Poirot
5fb7a23ea0
Bug 814497 - Cleanup console service cache when a window is destroyed. r=nfroyd
2015-07-09 06:49:00 -04:00
Ehsan Akhgari
29d8c3e504
Bug 1123386 - Part 3: Mark DoNothingCallback::Callback as override in order to fix a build issue in warnings as errors mode
2015-07-17 22:19:57 -04:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Wes Kocher
aec62d3dc0
Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
...
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Wes Kocher
14b97c87b1
Backed out changeset df6593df027b (bug 1173912)
2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-10 14:28:32 -07:00
Ben Kelly
2a31a01e4b
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-10 14:28:32 -07:00
Wes Kocher
a44c7080e6
Backed out changeset 9814f77d258b (bug 1179924) for frequent random serviceworkers failures CLOSED TREE
2015-07-10 12:48:34 -07:00
Andrew McCreight
3f09fa3f0f
Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug
2015-07-10 07:41:33 -07:00
Nicholas Nethercote
70347ce8c5
Bug 1181445 (part 10) - Use nsBaseHashTable::Iterator in CycleCollectedJSRuntime. r=mccr8.
...
--HG--
extra : rebase_source : 04841562dbe03e48b37c941b540ade0c493ba4e6
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
dbb7aa5cb2
Bug 1181445 (part 9) - Use nsBaseHashTable::Iterator in nsConsoleService. r=froydnj.
...
--HG--
extra : rebase_source : b2093646a4e91e99e901075d19851392696f06ff
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
945ee9edd6
Bug 1181445 (part 8) - Use nsBaseHashTable::Iterator in SystemMemoryReporter. r=froydnj.
...
--HG--
extra : rebase_source : 1629f83406d7997fd8e21f3cb6558ca09adb109c
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
e4c39dc6c4
Bug 1181445 (part 2) - Use nsTHashTable::Iterator in nsMemoryReporterManager. r=froydnj.
...
--HG--
extra : rebase_source : 038b7ee151880d57066024d940fa112ee282a995
2015-07-08 22:32:39 -07:00
Jim Mathies
9a5c8328b9
Bug 1128454 - Add crash report annotations for plugin bridge operation failures. r=billm
2015-07-09 19:07:49 -05:00
Randell Jesup
238677c2c0
Bug 1155059: Patch 3&7 - fix leaks in Promise, ConsoleService and JS Finalize r=froydnj
2015-07-09 23:21:46 -04:00
Randell Jesup
89e710906c
Bug 1155059: Patch 0 - add do_AddRef() r=froydnj
2015-07-09 23:21:46 -04:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Hamzata Diallo
3f61ec7708
Bug 1178513
- Export libxul symbols needed by ACL. r=mattwoodrow
...
--HG--
extra : rebase_source : 77ebb8e1195c0e2570dbf5dbee54edfa5ecdab28
2015-07-02 15:19:35 -07:00
Nathan Froyd
8b000ee8d1
Bug 1174344 - make error message for mismatched leak log entries more helpful; r=mccr8
2015-06-29 16:36:32 -04:00
Jan de Mooij
976586cb5f
Bug 1177825 - Remove JSVAL_* constants. r=evilpie
2015-06-29 18:36:44 -07:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Benoit Girard
8d6a67f6d3
Bug 1172216 - Move nsStackwalk to mozglue. r=glandium
...
--HG--
rename : xpcom/base/nsStackWalk.cpp => mozglue/misc/StackWalk.cpp
rename : xpcom/base/nsStackWalk.h => mozglue/misc/StackWalk.h
extra : commitid : EMbWGfjKvdq
extra : rebase_source : b7308eb569cc1a019d3b7a92aaff0de7a49b5682
2015-06-10 16:32:45 -04:00
Andrew McCreight
e7103d0010
Bug 1174796 - Make sure ReleaseNow releases everything. r=smaug
2015-06-16 14:19:07 -07:00
Boris Zbarsky
3437c1a714
Bug 1174486 part 4. Stop reporting exceptions in nsJSUtils::EvaluateString and have its consumers use AutoJSAPIs that take ownership of error reporting instead. r=bholley
2015-06-15 20:11:06 -04:00
Terrence Cole
7afa7dfb04
Bug 1173889 - Strongly type the CallbackTracer dispatch function; r=jonco, r=mccr8
...
--HG--
extra : rebase_source : 413319f0701f8e92b8fc1c79a51f4a09c2c5cd39
2015-06-11 10:03:33 -07:00
Ted Mielczarek
2599be2191
bug 1171125 - Fix nsStackWalk to build for iOS. r=froydnj
...
--HG--
extra : commitid : 611nBr14g2p
extra : rebase_source : e2a00b1ed8048fcb04732c3225e3fe938247b0d3
2015-02-04 10:50:10 -05:00
Eric Rahm
ae0305135a
Bug 1171722 - Part 4: Don't warn if DebuggerOnGCRunnable::Enqueue fails during shutdown. r=mccr8
2015-06-10 21:31:35 -07:00
Nick Fitzgerald
6e561802a9
Bug 1141614 - Part 3: Trace cycle collection with AutoGlobalTimelineMarker; r=smaug
2015-06-10 14:05:53 -07:00
Ryan VanderMeulen
9a2838c071
Backed out 5 changesets (bug 1141614) for browser_timelineMarkers-02.js failures.
...
Backed out changeset 1db2b848699a (bug 1141614)
Backed out changeset 9becec7879dc (bug 1141614)
Backed out changeset fff492fc48ce (bug 1141614)
Backed out changeset f49e64db4a66 (bug 1141614)
Backed out changeset 63199013dac2 (bug 1141614)
CLOSED TREE
2015-06-09 13:20:24 -04:00
Nick Fitzgerald
5e7b98846a
Bug 1141614 - Part 3: Trace cycle collection with AutoGlobalTimelineMarker; r=smaug
2015-06-08 12:40:07 -07:00
Andrew McCreight
8f412649a9
Bug 1152079 - Remove references to deleted Purify files from moz.build. r=bustage
2015-06-06 14:49:42 -07:00
Andrew McCreight
2a29c287a6
Bug 1152079 - Remove Purify support files. r=froydnj
2015-06-06 14:37:59 -07:00