Граф коммитов

1227 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 7630259d43 Bug 1580883 - Use TimeDuration for CycleCollectorStats members r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45697

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:46 +00:00
Jon Coppeard f326bb945c Bug 1580883 - Use TimeDuration for remaining global in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45696

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:32 +00:00
Jon Coppeard 99e7fae124 Bug 1580883 - Use TimeDuration for constants in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45695

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:23 +00:00
Jon Coppeard 559e2c332d Bug 1580883 - Use TimeStamp/TimeDuration APIs instead of PRTime/PR_Now() in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45693

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:09 +00:00
Karl Tomlinson 8361c71fb3 Bug 1578623 add stack support to AsyncErrorReporter r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D44608

--HG--
extra : moz-landing-system : lando
2019-09-09 00:41:46 +00:00
Jon Coppeard 0de32dc6cd Bug 1580474 - Replace #defines with constants in nsJSEnvironment files r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45531

--HG--
extra : moz-landing-system : lando
2019-09-12 09:56:52 +00:00
Noemi Erli d988a687b9 Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE
Backed out changeset 52a86c60c866 (bug 1578623)
Backed out changeset e4fddd3d24b4 (bug 1578623)
Backed out changeset 65a7c4daec27 (bug 1578623)
Backed out changeset 3badf9215788 (bug 1578623)
Backed out changeset 71e58ee8f684 (bug 1578623)
Backed out changeset 0128e12a910f (bug 1578623)
Backed out changeset 8242877392bd (bug 1578623)
Backed out changeset 6d7be8a22f8b (bug 1578623)
Backed out changeset 3be609a9be36 (bug 1578623)

--HG--
extra : amend_source : b76d374926d247982773b58d12cb26e33d9972e8
2019-09-09 03:37:09 +03:00
Karl Tomlinson dcc752541e Bug 1578623 add stack support to AsyncErrorReporter r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D44608

--HG--
extra : moz-landing-system : lando
2019-09-06 02:10:32 +00:00
Jon Coppeard 335ff4bf5d Bug 1518138 - Make RunNextCollectorTimer trigger full GCs to address out of memory errors running JS reftests r=smaug
This doesn't fix the underlying problem but makes RunNextCollectorTimer more aggressive in what it does. Testing shows this substantially reduces the max GC heap size while running these tests as well as vsize and RSS. Hopefully this will fix the problem with the tests failing while we work out a good solution for the underlying issue.

Differential Revision: https://phabricator.services.mozilla.com/D44378

--HG--
extra : moz-landing-system : lando
2019-09-03 12:21:45 +00:00
Andrew Creskey 7134be5031 Bug 1575938 Convert dom/JSEnvironment GC timing constants to StaticPref r=edgar
Converted the following to StaticPrefs so that we can easily test variations:

NS_GC_DELAY
NS_SHRINK_GC_BUFFERS_DELAY
NS_FIRST_GC_DELAY
NS_FULL_GC_DELAY
NS_INTERSLICE_GC_DELAY

NS_USER_INTERACTION_INTERVAL

Differential Revision: https://phabricator.services.mozilla.com/D43112

--HG--
extra : moz-landing-system : lando
2019-08-26 15:51:01 +00:00
Jon Coppeard 992d6b6ce5 Bug 1570905 - Rework the GC triggers to make the incremental trigger the default and the non-incremental trigger some factor of this r=sfink?
Differential Revision: https://phabricator.services.mozilla.com/D41606

--HG--
extra : moz-landing-system : lando
2019-08-13 08:40:36 +00:00
Jon Coppeard 2d89bbf3df Bug 1569564 - Remove the original malloc counter infrastructure r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D39735

--HG--
extra : moz-landing-system : lando
2019-07-31 09:13:36 +00:00
Kannan Vijayan 3fb6190ec6 Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378

--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Nicholas Nethercote 18fae65f38 Bug 1563139 - Remove StaticPrefs.h. r=glandium
This requires replacing inclusions of it with inclusions of more specific prefs
files.

The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.

Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.

Differential Revision: https://phabricator.services.mozilla.com/D39138

--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Jon Coppeard eb473b5dda Backed out changeset ec4aac5a6c9f (bug 1557771) for performance regressions a=backout 2019-07-12 15:08:24 +01:00
Karan Sapolia ed6ee44baf Bug 1549263 - Rename sliceTimeBudget() and related symbols to include units. r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D35588

--HG--
extra : moz-landing-system : lando
2019-06-28 12:56:08 +00:00
Jon Coppeard 22952620f8 Bug 1560931 - Set JS engine low memory state based on memory pressure notifications r=smaug
Update the memory pressure observers for main thread and workers to call the new JS API to set/clear the low memory state.

Differential Revision: https://phabricator.services.mozilla.com/D35682
2019-06-24 18:24:47 +01:00
Jon Coppeard adf4147b2b Bug 1557771 - Trigger fewer GCs via nsJSContext::MaybeRunNextCollectorSlice r=smaug
This patch changes MaybeRunNextCollectorSlice so that it doesn't start a new GC/CC if one is not running already.

This reduces the number of GC slices when running the benchmark from ~400 to ~230.

Olli, what do you think?  It seems to me that this is closer to the original intention of the code.  I haven't run this through perfherder because I haven't worked out what try command I need to do this, but I figure that it won't make things worse.

Differential Revision: https://phabricator.services.mozilla.com/D35556
2019-06-21 11:11:29 -07:00
Boris Zbarsky 50150d0231 Bug 1559468 part 2. Move JS_DefineProfilingFunctions into dom::CreateGlobal. r=mccr8
Various callers either already call it or should but are forgetting to.  The exception is WorkerDebuggerGlobalScope_Binding::Wrap, but it should be OK to set up the profiling functions there too.

Differential Revision: https://phabricator.services.mozilla.com/D35458

--HG--
extra : moz-landing-system : lando
2019-06-20 23:07:40 +00:00
Andrew McCreight d7e4cdb247 Bug 1559263 - Eliminate nsJSContext::mIsInitialized. r=bzbarsky
Two places read the value of mIsInitialized: nsJSContext::IsContextInitialized()
and nsJSContext::InitContext(). The former is never called. The latter is called
once, with an nsJSContext that just had its mInitialized field set to false, so
the check will always succeed. Because nothing meaningfully reads the value of
the field, we can delete the field and everything that uses it.

Differential Revision: https://phabricator.services.mozilla.com/D34947

--HG--
extra : moz-landing-system : lando
2019-06-14 18:40:25 +00:00
Olli Pettay 9ae6dfc8ab Bug 1548358 - Consider to finish forget skippable phase sooner if there is idle time to use, r=mccr8
--HG--
extra : rebase_source : 0adb6235a2f8d43de78231dda11441abb8fbb5ab
2019-05-07 22:58:13 +03:00
Paul Bone d3857d4888 Bug 1532838 - Add a pref for the minimum nursery size r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29815

--HG--
extra : moz-landing-system : lando
2019-05-06 03:14:22 +00:00
Paul Bone 6eabff94c7 Bug 1532838 - Use correct units in a preference name r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D29814

--HG--
extra : moz-landing-system : lando
2019-05-06 03:13:51 +00:00
Olli Pettay e217c0e5c8 Bug 1548827, let CC to run sooner after GC, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29864

--HG--
extra : moz-landing-system : lando
2019-05-03 18:44:14 +00:00
Olli Pettay 2d3a4fc4ab Bug 1548355 - Tweak sLastCCEndTime handling to be able to check two tasks within < 1ms, r=mccr8 2019-05-01 23:23:24 +03:00
Olli Pettay 8450c835d5 Bug 1548146 - Tweak sLastForgetSkippableCycleEndTime handling to be able to check two tasks within < 1ms, r=mccr8
--HG--
extra : rebase_source : a4d82ac6cbac8d58b091565cb8ccc4c12d71fcde
2019-05-01 01:41:06 +03:00
Olli Pettay 897fa17b45 Bug 1545093 - Add telemetry about full GC cycle, including time between slices, r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D27896

--HG--
extra : moz-landing-system : lando
2019-04-17 15:55:03 +00:00
Jon Coppeard 3538d42c33 Bug 1544885 - Don't immediately run another GC slice in idle time if there's no work to do on the main thread r=smaug r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D27889
2019-04-17 14:04:32 +01:00
Olli Pettay 1e99e9f05e Bug 1544866 - Make InterSliceGCRunnerFired to return false in case the full budget wasn't used. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D27756

--HG--
extra : moz-landing-system : lando
2019-04-16 19:59:30 +00:00
Olli Pettay 06b0a5cdbf Bug 1543961 - tweak iGC slices to be handled more often in case there is idle time, r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D27281

--HG--
extra : moz-landing-system : lando
2019-04-15 10:40:26 +00:00
Sylvestre Ledru 7f60810d86 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D27245

--HG--
extra : moz-landing-system : lando
2019-04-12 13:14:25 +00:00
Brian Hackett 5ece767b75 Bug 996060 Part 2 - Use JS engine stack if necessary when reporting errors, r=bz.
Differential Revision: https://phabricator.services.mozilla.com/D25645

--HG--
extra : rebase_source : c9cfe0d968bbe1d53e1eb1fc52433f88771d5faa
2019-04-01 12:17:43 -06:00
Boris Zbarsky 11f24f599a Bug 1541600 part 1. Stop using AutoJSContext in nsJSEnvironment. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D26222

--HG--
extra : moz-landing-system : lando
2019-04-04 20:00:08 +00:00
Masayuki Nakano de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

Differential Revision: https://phabricator.services.mozilla.com/D25338

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00
Dorel Luca 5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano 9273f25ce2 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

Differential Revision: https://phabricator.services.mozilla.com/D25338

--HG--
extra : moz-landing-system : lando
2019-03-29 13:09:26 +00:00
Yoshi Cheng-Hao Huang edbc333422 Bug 1521732 - Part 3: Use RootedValueVector instead. r=sfink,jonco
s/AutoValueVector/RootedValueVector/g

Depends on D23183

Differential Revision: https://phabricator.services.mozilla.com/D23184

--HG--
extra : moz-landing-system : lando
2019-03-26 13:58:20 +00:00
Paul Bone 766127bc4a Bug 1539031 - (part 3) Set the GC modes from prefs with the new mode r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D24851

--HG--
extra : moz-landing-system : lando
2019-03-26 16:57:41 +00:00
Paul Bone ce0c450e03 Bug 1539031 - (part 1) Rename JSGC_MODE_INCREMENTAL r=jonco
Since this mode covers both incremental and zonal GC, let's rename it to
reflect that.  JSGC_MODE_ZONE_INCREMENTAL.

Differential Revision: https://phabricator.services.mozilla.com/D24849

--HG--
extra : moz-landing-system : lando
2019-03-26 16:57:40 +00:00
Olli Pettay 0205a2035e Bug 1529735, assert that only either sCCRunner or sICCRunner is active, not both, r=mccr8
--HG--
extra : rebase_source : dcfcc9b730e964561fe423edded4190170932293
2019-03-02 18:39:41 +02:00
Jan de Mooij a036edcd64 Bug 1529306 - Trigger GC timers before CC timers in nsJSContext::RunNextCollectorTimer. r=mccr8
This fixes frequent jsreftest OOMs on Win32 because we weren't triggering GC
frequently enough. Bug 1377131 changed the timer ordering in this code and might
have regressed this.

Differential Revision: https://phabricator.services.mozilla.com/D20664

--HG--
extra : moz-landing-system : lando
2019-02-21 20:50:25 +00:00
Luke Wagner fc9dea6cc7 Bug 1520931 - Remove asm.js cache hooks JS API (r=bbouvier)
--HG--
extra : rebase_source : aac95865af1b87970d49b89edbec0acad6c74219
2019-02-11 11:41:57 -06:00
Jon Coppeard a96229ddb3 Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
Cosmin Sabou 7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Greg Tatum 7042c8f1c3 Bug 1520526 - Add categories to all profiler markers; r=mstange
This commit adds categories to all markers. This way the profiler's
marker categories and frame label categories agree. There are a few
duplicate category properties on some of the marker payloads, but
this could be cleaned up in a follow-up if needed.

Differential Revision: https://phabricator.services.mozilla.com/D16864

--HG--
extra : moz-landing-system : lando
2019-01-18 15:40:15 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Paul Bone 793ed8be23 Bug 1520357 - Rename the JSON formatting entry points r=jonco
I'm always forgetting which code path is which.  So give both these
functions clearer names that say if they're used by profiling or telemetry.

--HG--
extra : rebase_source : 8edcabba510bcf7170b7e071f7cb3a21be23b0e4
2019-01-17 14:08:30 +11:00
Jeff Walden a128f0c35c Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
--HG--
extra : rebase_source : b80911e01f984ee9f99fbbc6c4552ef3d2178587
2019-01-03 15:37:01 -06:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00