Fabrice Desré
c50cb528fc
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel
3ccd75af8d
Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD
2022-08-03 18:55:00 +03:00
Andreea Pavel
fdb7cb2ecd
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00
Bob Owen
d6333678d8
Bug 1682520 p1: Move GeckoProcessType and implementation of get and set into mozglue. r=glandium
...
This means we can set and use the process type earlier in process startup.
Differential Revision: https://phabricator.services.mozilla.com/D152198
2022-08-02 10:41:14 +00:00
Andreea Pavel
89d63c91e6
Backed out changeset a907159a482f (bug 1761040) for causing build bustages on a CLOSED TREE
2022-08-02 04:59:08 +03:00
Fabrice Desré
0f4ac7ad97
Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-02 00:49:41 +00:00
Cristian Tuns
85e845a6dc
Backed out 2 changesets (bug 1682520) for causing build bustages on ProcessType.h CLOSED TREE
...
Backed out changeset 679e19334225 (bug 1682520)
Backed out changeset dad72c7e0d7b (bug 1682520)
2022-07-29 17:04:49 -04:00
Bob Owen
cf59d0973b
Bug 1682520 p1: Move GeckoProcessType and implementation of get and set into separate files. r=glandium
...
This means we can include these files in other binaries when we need earlier
access to the process type and use consistent code.
Differential Revision: https://phabricator.services.mozilla.com/D152198
2022-07-29 18:10:53 +00:00
Tooru Fujisawa
af81b5300a
Bug 1667455 - Part 20: Remove Services.jsm from comments. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D150911
2022-07-11 12:41:56 +00:00
Kris Maglione
12faebc6e9
Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-30 09:12:19 +00:00
Kris Maglione
a8a76125b8
Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-30 09:12:16 +00:00
Gerald Squelart
c3f739da8e
Bug 1777391 - Document that registered IOInterposeObserver's should be static and reusable - r=florian
...
Depends on D150698
Differential Revision: https://phabricator.services.mozilla.com/D150699
2022-06-30 07:30:08 +00:00
Gerald Squelart
700356529b
Bug 1777391 - Constify the ObserverLists to ensure that they're never modified after construction - r=florian
...
Differential Revision: https://phabricator.services.mozilla.com/D150698
2022-06-30 07:30:07 +00:00
Nick Alexander
4170258b2e
Bug 1163452 - Only register stderr if it differs from stdout. r=glandium
...
Under certain Windows shells, the handle for stderr may be the same as
the handle for stdout. Avoid crashing in this case.
Differential Revision: https://phabricator.services.mozilla.com/D150517
2022-06-29 17:15:45 +00:00
Lee Salzman
1a73fcfa42
Bug 1774916 - Avoid opening temporary X display in error handler. r=aosmond,gfx-reviewers,nical
...
Differential Revision: https://phabricator.services.mozilla.com/D150401
2022-06-27 18:54:57 +00:00
Noemi Erli
ff26b8a5d0
Backed out 11 changesets (bug 1773770) because shouldn't have been landed during a soft freeze CLOSED TREE
...
Backed out changeset ede55d570d1e (bug 1773770)
Backed out changeset d5374ef362c2 (bug 1773770)
Backed out changeset 26e47956508b (bug 1773770)
Backed out changeset c78f0c4c8f3f (bug 1773770)
Backed out changeset 9089a97bcb26 (bug 1773770)
Backed out changeset 17894f5b3b41 (bug 1773770)
Backed out changeset 986a64a9e6b4 (bug 1773770)
Backed out changeset 7a63d8676bf0 (bug 1773770)
Backed out changeset 38e7b99ffbed (bug 1773770)
Backed out changeset e9ad07c96ab2 (bug 1773770)
Backed out changeset 2a8f65417b66 (bug 1773770)
2022-06-24 20:03:43 +03:00
Kris Maglione
2e6a978eec
Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-24 07:10:19 +00:00
Kris Maglione
4bd7eb42a2
Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-24 07:10:16 +00:00
criss
6abc242b8d
Backed out 11 changesets (bug 1773770) for causing mochitest failures on test_bug466599.xhtml. CLOSED TREE
...
Backed out changeset d35762c3242d (bug 1773770)
Backed out changeset 0501c85d3f58 (bug 1773770)
Backed out changeset cdd28e0e3434 (bug 1773770)
Backed out changeset a48829529dd0 (bug 1773770)
Backed out changeset c3fcdd7e88e5 (bug 1773770)
Backed out changeset 8f334c5dc0cd (bug 1773770)
Backed out changeset 337e76b67647 (bug 1773770)
Backed out changeset 71f539b482ba (bug 1773770)
Backed out changeset b996cbbbc2f5 (bug 1773770)
Backed out changeset a6ddc3cdc9ba (bug 1773770)
Backed out changeset c8d7da3cf2ac (bug 1773770)
2022-06-24 08:12:40 +03:00
Kris Maglione
8636bacdcd
Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-24 00:47:46 +00:00
Kris Maglione
36eea502fb
Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-24 00:47:43 +00:00
Marian-Vasile Laza
7dd26a3f65
Backed out 11 changesets (bug 1773770) for causing bc failures on browser_xpcom_graph_wait.js. CLOSED TREE
...
Backed out changeset 72ace9ee39ae (bug 1773770)
Backed out changeset e8a3a040b4c4 (bug 1773770)
Backed out changeset 4ff5f4f0f5d1 (bug 1773770)
Backed out changeset f96e9664168d (bug 1773770)
Backed out changeset b6a696897ca8 (bug 1773770)
Backed out changeset 1b8ad6be2dce (bug 1773770)
Backed out changeset 7e3a1a32a88d (bug 1773770)
Backed out changeset 6dbe5fa1ad4f (bug 1773770)
Backed out changeset 86e09dcdadde (bug 1773770)
Backed out changeset 1ee8d852d9d5 (bug 1773770)
Backed out changeset c99e93023059 (bug 1773770)
2022-06-24 03:25:34 +03:00
Kris Maglione
ca338cab57
Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-23 23:05:38 +00:00
Kris Maglione
56cbf4f676
Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-23 23:05:35 +00:00
Marian-Vasile Laza
969bcd8dfe
Backed out 11 changesets (bug 1773770) for causing bustages on nsComponentManager.obj.
...
Backed out changeset 3538e99dd668 (bug 1773770)
Backed out changeset 0862b3275742 (bug 1773770)
Backed out changeset 45dbd95d94bb (bug 1773770)
Backed out changeset 1d079a6ae89c (bug 1773770)
Backed out changeset ac4c4a143ff7 (bug 1773770)
Backed out changeset 0e3233868101 (bug 1773770)
Backed out changeset ac727812fd06 (bug 1773770)
Backed out changeset fe46df06e31a (bug 1773770)
Backed out changeset 51b89b344d7f (bug 1773770)
Backed out changeset 62e49ca3f288 (bug 1773770)
Backed out changeset 6df39588ec9a (bug 1773770)
2022-06-24 01:16:58 +03:00
Kris Maglione
bd53de0ad1
Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-23 20:13:11 +00:00
Kris Maglione
b41d646441
Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-23 20:13:08 +00:00
Kris Maglione
27515a3d83
Bug 1770237: Part 17 - Rename mozJSComponentLoader to mozJSModuleLoader r=mccr8,decoder
...
Differential Revision: https://phabricator.services.mozilla.com/D148197
2022-06-22 20:31:37 +00:00
Barret Rennie
bee899913a
Bug 1773095 - Remove XRE_API macro r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D148536
2022-06-08 00:02:02 +00:00
Norisz Fay
437a9698ca
Backed out changeset 4f8da65af9b3 (bug 1773095) for causing XRE related build bustages CLOSED TREE
2022-06-08 01:01:55 +03:00
Barret Rennie
ffde9cb41a
Bug 1773095 - Remove XRE_API macro r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D148536
2022-06-07 21:31:03 +00:00
Seweryn Pajor
e30e84c58a
Bug 1772523 - Fix compiler warning about unused variable rv. r=xpcom-reviewers,jstutte
...
Differential Revision: https://phabricator.services.mozilla.com/D148308
2022-06-06 14:26:10 +00:00
Seweryn Pajor
542f474cbc
Bug 1769485 - Replace if statement checking if service manager is present with MOZ_DIAGNOSTIC_ASSERT. r=xpcom-reviewers,jstutte
...
Differential Revision: https://phabricator.services.mozilla.com/D147882
2022-06-01 17:15:06 +00:00
Andrew McCreight
fa8bfd1245
Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D146457
2022-05-17 20:24:19 +00:00
Randell Jesup
00859f1620
Bug 1762959 - xpcom/io thread-safety annotations r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D142066
2022-05-16 13:54:05 +00:00
Jens Stutte
aa8c3727dc
Bug 1766572: Part 3 - Make nsTerminator aware of late shutdown phases. r=xpcom-reviewers,nika
...
In order to get better shutdown hang reporting, we want to distinguish also the last phases, namely `XPCOMShutdownThreads`, `XPCOMShutdownMainThread` and `CCPostLastCycleCollection`.
This also makes `XPCOMShutdownNotified()` obsolete and we need to slightly re-arrange the watchdog function.
Differential Revision: https://phabricator.services.mozilla.com/D145433
2022-05-13 15:47:53 +00:00
Jens Stutte
f02175db9d
Bug 1766572: Part 2 - Synchronize KillClearOnShutdown phases with AdvanceShutdownPhase. r=xpcom-reviewers,dthayer,nika
...
The concept of a shutdown phase is meant to be a finite and named period of time where:
1. we can query if we are in or beyond a given phase
2. we may want to do a fast shutdown
3. we inform the terminator that we reached the next phase
4. if needed/wanted, we notify observers of the associated topic
5. we KillClearOnShutdown smart pointers associated with this phase
6. we do any further, phase-individual cleanup until the next phase starts
`AdvanceShutdownPhase(WithoutNotify)` now provides the functionality for 1. through 5. and must be the only place that calls `KillClearOnShutdown` in order to avoid misalignments.
In doing so, it becomes also the only caller of `MaybeFastShutdown`.
Please refer to bug 1768581 as working on this patch made us think if we should re-work the order inside AdvanceShutdownPhase.
Differential Revision: https://phabricator.services.mozilla.com/D145083
2022-05-13 15:47:52 +00:00
Jens Stutte
13675ac0e6
Bug 1766572: Part 1 - Remove obsolete ShutdownPhase::XPCOMShutdownLoaders. r=xpcom-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D145082
2022-05-13 15:47:52 +00:00
Emilio Cobos Álvarez
d91ccf6978
Bug 1762356 - Introduce XREAppData::GetDBUSAppName. r=jhorak
...
And do a more in-depth sanitization than what we were doing.
Differential Revision: https://phabricator.services.mozilla.com/D145863
2022-05-09 10:11:40 +00:00
Mike Hommey
ec71e64fa5
Bug 1766561 - Fix various formatting errors. r=media-playback-reviewers,gfx-reviewers,nika,necko-reviewers,rkraesig,alwu,padenot,kershaw
...
- Missing/Extra formatting directives
- Typos in formatting directives
- Non-literal strings used as formatting strings
- Wrong types passed as argument
- Swapped/Wrong arguments
- Commas between parts of unique formatting strings
Differential Revision: https://phabricator.services.mozilla.com/D144921
2022-05-03 20:49:10 +00:00
Nika Layzell
41458369b2
Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte
...
This patch moves where we perform the final KillClearOnShutdown to occur
after we've shut down non-main threads, but before the main thread stops
accepting events. This should help ensure that unsuspecting events,
including those triggered from nsIThreadShutdownTask tasks, don't run
after KillClearOnShutdown has been run on background or main threads.
This KillClearOnShutdown was moved to occur before
nsThreadManager::Shutdown() in bug 1637890, as there were examples of
KillClearOnShutdown callbacks which needed to be able to dispatch
main-thread runnables. This change should not regress that use-case, as
we are still accepting new events on the main thread after the callback.
Non-main threads were already unreliable after this call as we already
block normal dispatches by setting gXPCOMThreadsShutdown, and new
threads cannot be started for the background thread pool.
Differential Revision: https://phabricator.services.mozilla.com/D144591
2022-05-02 20:38:43 +00:00
criss
c19d3ee5d7
Backed out 2 changesets (bug 1764119) for causing build bustages. CLOSED TREE
...
Backed out changeset 62743521627e (bug 1764119)
Backed out changeset f8ba6b0a8c6f (bug 1764119)
2022-05-02 19:35:23 +03:00
Nika Layzell
73061fa43e
Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte
...
This patch moves where we perform the final KillClearOnShutdown to occur
after we've shut down non-main threads, but before the main thread stops
accepting events. This should help ensure that unsuspecting events,
including those triggered from nsIThreadShutdownTask tasks, don't run
after KillClearOnShutdown has been run on background or main threads.
This KillClearOnShutdown was moved to occur before
nsThreadManager::Shutdown() in bug 1637890, as there were examples of
KillClearOnShutdown callbacks which needed to be able to dispatch
main-thread runnables. This change should not regress that use-case, as
we are still accepting new events on the main thread after the callback.
Non-main threads were already unreliable after this call as we already
block normal dispatches by setting gXPCOMThreadsShutdown, and new
threads cannot be started for the background thread pool.
Differential Revision: https://phabricator.services.mozilla.com/D144591
2022-05-02 16:09:03 +00:00
Gerald Squelart
9c53f3da99
Bug 1765242 - Rename IOInterposer.cpp's thread-safe list of observers to SourceList - r=dthayer
...
Differential Revision: https://phabricator.services.mozilla.com/D143975
2022-04-19 20:39:38 +00:00
Randell Jesup
3c66153d0a
Bug 1760645 - xpcom IOInterposer thread-safety annotations r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D141654
2022-04-04 22:55:21 +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
criss
ea772f6e4b
Backed out changeset 3cef8943e0c6 (bug 1635428) for causing build bustages on nsMacUtilsImpl.cpp. CLOSED TREE
2022-04-01 01:39:33 +03:00
Kagami Sascha Rosylight
7913ea573c
Bug 1635428 - Part 1: Move mozilla::IsDevelopmentBuild to Omnijar.h r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D142569
2022-03-31 22:05:55 +00:00
Randell Jesup
283dba5b29
Bug 1761667: Handle failed OpenArchive in FileLocation r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D142483
2022-03-30 18:30:17 +00:00
Randell Jesup
703bd76404
Bug 1744043: Clean up nsJAR r=nika,valentin,extension-reviewers,robwu
...
Differential Revision: https://phabricator.services.mozilla.com/D132794
2022-03-24 13:54:56 +00:00