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

5089 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 80d0e18901 Bug 1763658 - Part 5: Remove unused tracing option r=jandem
This was only used in the ObjectGroup trace hook.

Differential Revision: https://phabricator.services.mozilla.com/D143348
2022-04-11 11:48:14 +00:00
Bryce Seager van Dyk c985cc36b7 Bug 1762839 - Adjust locking in AvailableMemoryWatcherWin to appease thread safety checker. r=nika
This stops the checker complaining that locks aren't held by adding further
annotations and doing some locking slightly earlier.

I've tried to adhere to the convention of passing a lock when a function
requires it, though I don't believe we have to do so to make the checker happy.

Differential Revision: https://phabricator.services.mozilla.com/D143003
2022-04-10 21:58:26 +00:00
Jamie Nicol cee8f98714 Bug 1763392 - Generate SDK bindings for nested Java classes as nested C++ classes. r=agi,media-playback-reviewers,bryce
For example, the SDK class android.media.MediaDrm$KeyStatus will now
be defined as MediaDrm::KeyStatus rather than just KeyStatus.

Not only does this avoid polluting the top-level namespace, but it
also avoids a bug where invalid type names were generated if the
nested class contains a method with a parameter or return of the outer
class' type.

Differential Revision: https://phabricator.services.mozilla.com/D143043
2022-04-07 11:12:20 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Randell Jesup e543d9267a Bug 1762469: xpcom memory reporter cleanup r=nika
Differential Revision: https://phabricator.services.mozilla.com/D142614
2022-04-04 22:57:37 +00:00
Randell Jesup ae3ccd0aa8 Bug 1762605 - RLBox thread-safety annotations r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D142695
2022-04-01 20:43:57 +00:00
Kagami Sascha Rosylight 1e83450022 Bug 1635428 - Part 1: Move mozilla::IsDevelopmentBuild to Omnijar.h r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D142569
2022-03-31 23:36:25 +00:00
Alexandre Lissy 3d8f9e85b0 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 19:46:43 +00:00
Cristian Tuns b217ab7e55 Backed out 6 changesets (bug 1753424) for causing build bustages CLOSED TREE
Backed out changeset 930136daf858 (bug 1753424)
Backed out changeset d62c1e5d1881 (bug 1753424)
Backed out changeset 911060d2bd8e (bug 1753424)
Backed out changeset cce723862a92 (bug 1753424)
Backed out changeset 97b3fd69185b (bug 1753424)
Backed out changeset 4748652694c7 (bug 1753424)
2022-03-26 14:49:47 -04:00
Alexandre Lissy 94b46a0084 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
Butkovits Atila 68679c8f29 Backed out 5 changesets (bug 1753424) for causing bustages. CLOSED TREE
Backed out changeset e2b40064eb59 (bug 1753424)
Backed out changeset 0892c1d3c379 (bug 1753424)
Backed out changeset 4df499ef4647 (bug 1753424)
Backed out changeset f27fbfb9e8f1 (bug 1753424)
Backed out changeset 0f244f2eb2de (bug 1753424)
2022-03-26 16:39:16 +02:00
Alexandre Lissy baebfcdc76 Bug 1753424 - Support running multiple UtilityProcess r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139817
2022-03-26 09:53:47 +00:00
criss 0077f22487 Merge autoland to mozilla-central. a=merge 2022-03-24 11:35:23 +02:00
Randell Jesup 2c0c956707 Bug 1207753 - Various xpcom thread-safety annotations r=nika
Differential Revision: https://phabricator.services.mozilla.com/D130579
2022-03-23 22:22:51 +00:00
Norisz Fay 61cd14ddcd Backed out 6 changesets (bug 1661293) for causing Bug 1758370 CLOSED TREE
Backed out changeset 8f4d646a4bf6 (bug 1661293)
Backed out changeset ec817d9e8a17 (bug 1661293)
Backed out changeset efd35f1d9bd5 (bug 1661293)
Backed out changeset 00d93cc6125f (bug 1661293)
Backed out changeset 77b0b0003ca0 (bug 1661293)
Backed out changeset 04443fa474ac (bug 1661293)
2022-03-23 17:04:22 +02:00
Kagami Sascha Rosylight 19f195a70c Bug 1760812 - Part 1: Use std::tuple in NativeThenHandler r=smaug,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D141754
2022-03-22 16:44:58 +00:00
Nicholas Rishel 51019b5b0b Bug 1757435 - Disable fast shutdown for background tasks. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D141304
2022-03-18 20:14:47 +00:00
Nick Alexander 549a32bf40 Bug 1757229 - Ensure `Telemetry::CanRecordExtended()` is `false` in background tasks. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D141291
2022-03-17 15:45:56 +00:00
Randell Jesup addf814b52 Bug 1207753 - Base thread-safety attribution support r=nika
Differential Revision: https://phabricator.services.mozilla.com/D130606
2022-03-16 23:01:41 +00:00
Cristian Tuns 43db1804cf Backed out changeset 3b8c7fa73e82 (bug 1207753) for causing build bustages on Monitor.h CLOSED TREE 2022-03-16 16:45:54 -04:00
Randell Jesup e72ce3cd6c Bug 1207753 - Base thread-safety attribution support r=nika
With additions of MOZ_UNANNOTATED for *Mutex/*Monitor/RWLock classes

Differential Revision: https://phabricator.services.mozilla.com/D130606
2022-03-16 20:10:04 +00:00
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
Jon Coppeard 8645d72a16 Bug 1759174 - Part 2: Optimize GCThingIsMarkedGray APIs by removing check for shared GC things r=sfink,mccr8
This splits the API into two, one that does a bunch of checks and calls into
the JS engine, and one for use by the CC where all preconditions are assumed to
be satisfied and can be inlined entirely.

Depends on D140865

Differential Revision: https://phabricator.services.mozilla.com/D140866
2022-03-14 11:13:52 +00:00
Julien Wajsberg 2e9e2ccdd2 Bug 1752861 - [profiler] Expose GC and CC operations to the JS view r=sfink,smaug
Differential Revision: https://phabricator.services.mozilla.com/D140390
2022-03-11 09:18:31 +00:00
Jon Coppeard d40ccf2be0 Bug 1757956 - Part 3: Rename JSFreeOp to JS::GCContext in the JS engine r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D140525
2022-03-10 08:40:03 +00:00
Steve Fink c4fe49a03c Bug 1661293 - Make nsJSContext::MaybePokeGC trigger EAGER_ALLOC_TRIGGER major GCs instead of just eager minor GCs r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D100368
2022-03-03 04:21:48 +00:00
Steve Fink c3b0f38d01 Bug 1661293 - Move idle-time nursery GCs to a new nsJSContext::MaybePokeGC r=jonco,smaug
Differential Revision: https://phabricator.services.mozilla.com/D100367
2022-03-03 04:21:47 +00:00
Steve Fink 2b82b28cfd Bug 1661293 - Rename JS::RunIdleGCTask -> JS::MaybeRunNurseryCollection and pass through the reason, also rename IDLE_TIME_COLLECTION -> EAGER_NURSERY_COLLECTION. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139208
2022-03-03 04:21:47 +00:00
Gerald Squelart 2fa78ca017 Bug 1668867 - Move parts of GeckoProfiler.h into ProfilerControl.h - r=canaltinova
This profiler-controlling functions are used in very few places, so it's good to have them in a separate header to reduce dependencies.

On top of making GeckoProfiler.h lighter, this is actually needed for this bug, because a later patch adds MozPromise to profiler_start and others, which would have created a header loop (GeckoProfiler -> MozPromise -> Monitor -> CondVar -> GeckoProfiler) that makes the build fail.

Differential Revision: https://phabricator.services.mozilla.com/D139331
2022-03-01 06:56:00 +00:00
Chris Peterson 4c1f824528 Bug 1756504 - Remove cpp-virtual-final linter, a minor style check that doesn't diagnose real bugs. r=firefox-static-analysis-reviewers,sylvestre
In bug 1436263, I added a cpp-virtual-final.yml linter to warn about virtual function declarations that included more than one virtual function specifier `virtual`, `final`, or `override`.

I think we should remove this linter now because:

* It's just a style check and doesn't diagnose a real bug. Including more than one virtual function specifier (`virtual`, `final`, or `override`) is harmless and unambiguous, just unnecessary extra code.
* It has caused some engineer frustration because this style check caused their changeset to be backed out of autoland. Backing out and fixing these style issues are not a good use of sheriffs' or engineers' time.
* It doesn't catch all virtual/final/override style issues because:
  * It can't analyze virtual function definitions that span multiple lines.
  * It doesn't check for `virtual void Foo() override` because  there are over 6000 cases already, so our code will never follow this style check consistently.

Differential Revision: https://phabricator.services.mozilla.com/D139454
2022-02-24 02:14:39 +00:00
Kagami Sascha Rosylight ed9bb84c5d Bug 1755594 - Part 1: Add NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D138903
2022-02-23 13:44:01 +00:00
Csoregi Natalia dafaf9d404 Backed out 2 changesets (bug 1755594) for causing bp-hybrid bustage on TeeState.cpp. CLOSED TREE
Backed out changeset 82a58b494f74 (bug 1755594)
Backed out changeset b347a6be8478 (bug 1755594)
2022-02-23 04:25:02 +02:00
Kagami Sascha Rosylight 76a997af6d Bug 1755594 - Part 1: Add NS_IMPL_CYCLE_COLLECTION_WITH_JS_MEMBERS r=mccr8,smaug
Differential Revision: https://phabricator.services.mozilla.com/D138903
2022-02-23 01:20:25 +00:00
Paul Bone 5e97d6f437 Bug 1704996 - Account for Apple Aarch64 shared memory region r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D139254
2022-02-22 23:42:08 +00:00
Jens Stutte 8dc1e5affa Bug 1750635: Substitute AppShutdown:IsShuttingDown with equivalent AppShutdown::IsInOrBeyond. r=florian,xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D139143
2022-02-18 19:35:13 +00:00
Kershaw Chang fc9473085a Bug 1754491 - Introduce new error code - NS_ERROR_WEBSOCKET_CONNECTION_REFUSED, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D138891
2022-02-18 14:02:15 +00:00
stransky f3f1b9f256 Bug 1670817 Add a new NS_ERROR_DOM_MEDIA_REMOTE_DECODER_CRASHED_ERR error type r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D138268
2022-02-17 10:32:00 +00:00
Haik Aftandilian 647c332747 Bug 1755409 - aarch64 Darwin fails to build with --disable-sandbox r=spohl
Make GetAppPath() defined on Mac aarch64 builds even without MOZ_SANDBOX because aarch64 builds may use it for Rosetta pre-translation.

Differential Revision: https://phabricator.services.mozilla.com/D138751
2022-02-15 16:15:21 +00:00
Jon Coppeard 495e25eed1 Bug 1753958 - Part 3: Add a GCOption for shutdown GCs and use this rather than checking the GCReason r=sfink,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D138555
2022-02-15 09:45:06 +00:00
Jan de Mooij 4249b631d8 Bug 1754405 part 8 - Rename JSID_VOID to PropertyKey::Void(). r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D138279
2022-02-13 12:01:46 +00:00
Mike Hommey 3bd8a8a9ee Bug 1754154 - Add missing include for nsINamed in RLBoxSandboxPool.h. r=xpcom-reviewers,mccr8
It happens to work at the moment, but it only takes some file including
RLBoxSandboxPool.h without also including nsINamed.h indirectly to break
the build. This becomes apparent when backporting RLBoxSandboxPool to
esr91.

Differential Revision: https://phabricator.services.mozilla.com/D138123
2022-02-09 05:38:55 +00:00
Andrew McCreight 2761427f66 Bug 1753996 - Make the reason for an all traces CC's GC be CC_FORCED. r=smaug
An all traces CC forces a GC to disable various cycle collector optimizations.
We never do all traces CCs normally, but they are useful for debugging leaks.

The forced GC for an all traces CC was incorrectly being given the reason
SHUTDOWN_CC, when it should be CC_FORCED. This is bad because various places in
the GC that check IsShutdownReason() will do extra cleanup during shutdown that
we don't want to do otherwise, so this patch corrects how we calculate the
reason.

I also fixed up the comment before FixGrayBits. As of bug 1749797, the
initial GC is no longer treated as suspect unless it does a full GC,
so the only time we'll actually need to force a GC during regular
operation is if the unmark gray stack overflows. I also folded in the
comment about why we force a GC for all traces CCs, and fixed a few
minor errors.

Finally, I changed mResults.mForcedGC to be true even in the case of
shutdown or an all traces CC, as I think it is more technically correct
this way, though the only impact should be on logging. An alternative
would have been to change mForceGC to be more specific to the case
of forcing a GC due to needing to fix the gray bits, but this was easier.

Differential Revision: https://phabricator.services.mozilla.com/D138026
2022-02-08 15:02:07 +00:00
Alexandre Lissy 27d27fe7e1 Bug 1749809 - Basic memory reporting test for UtilityProcess r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D137774
2022-02-04 21:05:50 +00:00
Cristian Tuns 2d0d8e4b0f Backed out 2 changesets (bug 1749809) for causing reftest failures on UtilityProcessManager.cpp CLOSED TREE
Backed out changeset 78a4a462c698 (bug 1749809)
Backed out changeset 4f55d4cc7b8c (bug 1749809)
2022-02-04 13:02:11 -05:00
Alexandre Lissy 5a84cf8dc4 Bug 1749809 - Basic memory reporting test for UtilityProcess r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D137774
2022-02-04 15:17:26 +00:00
Nika Layzell ded48d8d02 Bug 1751048 - Include the name of types created in static ctors/dtors in nsTraceRefCnt error messages, r=mccr8
This seems like it will be useful to help figure out what is being
created/destroyed at inappropriate times, and identify potential
problems faster.

Differential Revision: https://phabricator.services.mozilla.com/D136944
2022-01-26 19:48:06 +00:00