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

2946 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey d46c6229a7 Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers
As per mozglue/static/README:

> mozglue/static contains parts of the mozglue library that can/should be
> statically linked to e.g. js/Gecko.

The compression part of MFBT is a good candidate for this.

Differential Revision: https://phabricator.services.mozilla.com/D221565
2024-09-10 20:35:56 +00:00
Nicolas Guichard 5c37ebc381 Bug 1917744 - Adjust mozglue build script for rustc 1.83. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D221463
2024-09-10 03:35:01 +00:00
Florian Quèze 12e6021a2d Bug 1914862 - Add a TELEMETRY profiler cateogry, r=canaltinova,profiler-reviewers,aabh.
Differential Revision: https://phabricator.services.mozilla.com/D220132
2024-09-06 19:03:44 +00:00
Florian Quèze 757717524a Bug 1915228 - Remove expired telemetry scalar startup.skeleton_ui_disabled_reason, r=win-reviewers,TravisLong,gstoll.
Depends on D220334

Differential Revision: https://phabricator.services.mozilla.com/D220335
2024-08-28 19:44:36 +00:00
Matthew Gaudet efe3f4bd3e Bug 1904429 - Extract some core logging types into their own header file r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D217873
2024-08-23 15:52:45 +00:00
Iulian Moraru 8cff16a948 Backed out 5 changesets (bug 1904429) for causing ThreadSanitizer linux tsan failures.
Backed out changeset 787f23230ebd (bug 1904429)
Backed out changeset 81e85421af01 (bug 1904429)
Backed out changeset 9bf9011b0736 (bug 1904429)
Backed out changeset a59511524bc7 (bug 1904429)
Backed out changeset e74a80333551 (bug 1904429)
2024-08-22 23:57:12 +03:00
Matthew Gaudet 6e50ad8063 Bug 1904429 - Extract some core logging types into their own header file r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D217873
2024-08-22 17:05:59 +00:00
Nika Layzell d0b6b794db Bug 1908725 - Part 5: Add additional validation for early-startup command line checks, r=ipc-reviewers,mccr8
This patch adjusts the various places where we initialize content
processes to call SetGeckoProcessType as early as possible, and be more
consistent. After this change we should only ever set GeckoProcessType
and GeckoChildID once per-process (with the exception of the fork server
process).

In addition to this validation, some more checks around the fork server
were added, such as to prevent forking another forkserver, or forking a
non-content process.

As part of this change, there was some refactoring/cleanup done, such as
removing plugin-container.cpp and content_process_main, as compared to
the other duplicated code between the two call-sites, the duplication
was relatively small, and inlining it helped make things more readable.

Differential Revision: https://phabricator.services.mozilla.com/D218471
2024-08-07 20:39:41 +00:00
Nika Layzell bdb401316d Bug 1908725 - Part 2: Make the ChildID available in the same places as OtherPid, r=ipc-reviewers,media-playback-reviewers,win-reviewers,alwu,rkraesig,gfx-reviewers,mccr8,nical
This requires quite a bit of piping to get the ChildID passed everywhere where
we currently pass the pid in IPC. This is done by adding a new struct type
(EndpointProcInfo), which is passed around instead of OtherPid in these places,
and contains the full pid.

In most cases, it was a fairly painless change to move over, however in some
cases, more complex changes were required, as the pid was being stored
previously in something like an Atomic<...>, and needed to be switched to using
a mutex-protected value.

In the future, it may be possible to remove OtherPid from IPDL actors once
everything is migrated to ChildID, but we're still a long way off from that, so
for now we unfortunately need to pass both around.

Differential Revision: https://phabricator.services.mozilla.com/D217118
2024-08-07 20:39:39 +00:00
Nika Layzell 008c780b6b Bug 1908725 - Part 1: Introduce GeckoChildID, r=glandium,ipc-reviewers,mccr8
The new GeckoChildID type introduced in this patch is inspired by the existing
ContentParentID type used by ContentParent, but is currently distinct. It is
supported by all process types at the GeckoChildProcessHost level and can be
read for the current process from anywhere.

As this type is similar in many ways to the process type, and should be
available as early as possible within child processes, this was added alongside
the GeckoProcessType value within mozglue to make that easier to do.

The type was chosen to be an int32_t to make it feel similar to a PID, which we
currently use for process identity comparisons across the codebase. The
intention is for GeckoChildID to be preferred for these within-gecko checks, as
these IDs will not be re-used and can be known earlier during child process
creation.

Differential Revision: https://phabricator.services.mozilla.com/D217117
2024-08-07 20:39:39 +00:00
c8ef 7a1a9c40a3 Bug 1911403 - fix typo in source code -> r=nalexander,profiler-reviewers,jandem,masayuki,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D218474
2024-08-07 05:35:02 +00:00
Mike Hommey 27f6dc381c Bug 1909558 - Handle the deprecation of std::panic::PanicInfo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D217533
2024-07-24 07:07:27 +00:00
Mike Hommey f091d79808 Bug 1908833 - Remove unused #include <zlib.h>. r=geckoview-reviewers,m_kato
It hasn't been used since bug 855824.

Differential Revision: https://phabricator.services.mozilla.com/D217348
2024-07-23 22:05:38 +00:00
Mike Hommey 8e69a9a8fc Bug 1909344 - Adjust mozglue build script for rustc 1.82. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D217331
2024-07-22 22:33:32 +00:00
Sylvestre Ledru 45030f6970 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato
This new version of clang 17 also slightly changed the formatting.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D215914
2024-07-17 11:15:31 +00:00
Ray Kraesig ae1ea1e8fc Bug 1903452 - [1/2] Correct coordinate conversion when cloaking and clearing window r=emilio
The previous patchset failed to properly convert the RECT to be cleared
from screen- to window-coordinates. (This wasn't noticed because the two
only differ when nontrivial chrome such as the titlebar is present,
which by default it's not.)

Differential Revision: https://phabricator.services.mozilla.com/D214334
2024-06-25 18:19:42 +00:00
Jed Davis db155d4dd8 Bug 1894073 - Suppress TSan false positive during an edge case in process launch. r=decoder,ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D212644
2024-06-18 13:47:52 +00:00
Ray Kraesig 799ee37eab Bug 1824053 - [4/4] cloak and clear new window before showing it r=win-reviewers,handyman
When creating the skeleton UI window, cloak and clear it to a theme-
appropriate color before first showing it, just as is done in nsWindow.

Differential Revision: https://phabricator.services.mozilla.com/D212764
2024-06-17 14:17:50 +00:00
Ray Kraesig e0638bd860 Bug 1824053 - [3/4] DRY up skeleton-ui dynamic-resolution code r=glandium,win-reviewers,handyman
Cleanup prior to the addition of new code. No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D212763
2024-06-17 14:17:49 +00:00
Nazım Can Altınova 5a5ec63e4c Bug 1901016 - Remove descriptions from text and tracing marker schemas r=profiler-reviewers,julienw
It's really not possible to add a single meaningful description to these marker
types since they can be used by various marker types. Previous descriptions
were not really descriptive or helpful for the users. They were just explaining
some implementation details which our users don't need to know.

For the implementation details, we already check if this `Description` field
is nullptr or not, and if it's falsy we don't serialize this field at all:
https://searchfox.org/mozilla-central/rev/d3fea1aa852bb3a353a0a4a875c3685da11ce39b/mozglue/baseprofiler/public/BaseProfilerMarkersPrerequisites.h#1064-1066

Differential Revision: https://phabricator.services.mozilla.com/D212956
2024-06-14 13:24:01 +00:00
Alexandre Lissy 5ee893f489 Bug 1884378 - Add Sandbox profiler category r=canaltinova,profiler-reviewers,aabh
Differential Revision: https://phabricator.services.mozilla.com/D207737
2024-06-14 10:17:37 +00:00
alwu 5711ee7349 Bug 1902138 - part2 : add a new marker type for video sink rendering. r=media-playback-reviewers,profiler-reviewers,padenot,canaltinova
Depends on D213497

Differential Revision: https://phabricator.services.mozilla.com/D213498
2024-06-13 17:18:28 +00:00
Mike Hommey 02d1951025 Bug 1901890 - Adjust mozglue build script for rustc 1.81. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D213342
2024-06-12 08:26:03 +00:00
Valentin Gosu 7ebb860b81 Bug 1898171 - Add SanitizedString profiler marker format r=acreskey,profiler-reviewers,aabh
The sanitization function for URL and FilePath cannot currently sanitize
an arbitrary string in the profiler data. The expectation is that the URL
starts with a scheme like http:// and that a file path contains a /,
so none of them are sanitized if the contents are a domain name.
This commit introduces a new 'sanitized-string' format, that the profiler
can make sure to completely blank out.

Differential Revision: https://phabricator.services.mozilla.com/D211171
2024-06-04 17:59:19 +00:00
Yannis Juglaret 99134cc647 Bug 1897479 - Filter instructions when collecting single-step data. r=rkraesig,win-reviewers
This patch introduces an aInstructionFilter argument to
CollectModuleSingleStepData to allow filtering which kind of
instructions should be recorded. We implement the All default filter and
the CallRet filter.

Differential Revision: https://phabricator.services.mozilla.com/D211196
2024-06-03 12:24:41 +00:00
Yannis Juglaret adbf392846 Bug 1897479 - Abstract away single-step data collection for reusability. r=rkraesig,win-reviewers
This patch makes the single-step data collection code that we
implemented for bug 1571516 reusable, while preserving its behavior.
No functional changes, except for a slight reordering of the
error-result enum.

We define a generic CollectSingleStepData function that embeds the
magic for starting to trigger single step exceptions and for acting upon
them.

We define a more specialized CollectModuleSingleStepData function which
can be reused if the purpose of single step data collection is to
monitor what paths are taken within a specific module. It stores the
collected data in stack, so that it can be accessed from crash reports.

This code is considered unstable and thus only available in Nightly and
early Beta and only used on paths that are known to crash already.

Differential Revision: https://phabricator.services.mozilla.com/D211195
2024-06-03 12:24:41 +00:00
Mike Hommey 895fc56d4f Bug 1337955 - Switch the toolchains project branch to nightly rust compiler. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D210761
2024-05-30 06:03:28 +00:00
Patrycja Rosa 32e1cf70a0 Bug 1882329 - Make StackWalk Linux support check more specific r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D202862
2024-05-27 21:46:09 +00:00
Mike Hommey 3adb098477 Bug 1898382 - Remove Android < 5.0 specific code from the linker. r=gsvelto
Also remove workarounds for older NDKs.

Differential Revision: https://phabricator.services.mozilla.com/D211299
2024-05-23 06:48:36 +00:00
Mike Hommey 05d708653f Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-23 04:28:38 +00:00
Cristina Horotan 22fa3c4f67 Backed out 2 changesets (bug 1849075, bug 1878764) for causing remote failures at remote/shared/messagehandler/test/browser/*
Backed out changeset 0dbba1a7b5ab (bug 1878764)
Backed out changeset 86555ffb064f (bug 1849075)
2024-05-22 03:34:48 +03:00
Nazım Can Altınova cf09495834 Bug 1896582 - Do not stream profilerOverhead if it's not explicitly requested r=florian,profiler-reviewers
We have put the profilerOverhead recording behind a environment variable in
Bug 1726657 but apparently we still kept outputting some things in the JSON
output and also iterating the buffer to find profilerOverhead entries. Let's
skip this if this env variable is not set.

Differential Revision: https://phabricator.services.mozilla.com/D210469
2024-05-21 07:24:37 +00:00
Mike Hommey 010891448c Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-21 07:24:02 +00:00
Ryan VanderMeulen c84d3db8d7 Backed out 3 changesets (bug 1849075, bug 1897015, bug 1878764) for causing Android arm32 startup crashes (bug 1897635).
Backed out changeset 916680b7cdce (bug 1897015)
Backed out changeset c6dd0210975b (bug 1878764)
Backed out changeset c9e28db916e5 (bug 1849075)
2024-05-20 12:54:45 -04:00
Julien Cristau 2332065828 Bug 1841030 - cache the thread id in thread-local storage r=profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D205838
2024-05-17 14:09:22 +00:00
Mike Hommey 95aa11043a Bug 1897025 - Change OOM hooks to use cfg() rather than a hidden feature. r=emilio
Rustc/Cargo 1.80 introduces checks for uses of cfg() and features.
oom_with_hook and oom_with_alloc_error_panic are not meant to be
externally-enabled features, so they're better turned into cfg(),
which also now requires additional setup.

Differential Revision: https://phabricator.services.mozilla.com/D210588
2024-05-16 08:38:53 +00:00
serge-sans-paille b9f78f0cc2 Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-05-15 20:29:07 +00:00
Mike Hommey 7072328ee9 Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-15 19:38:32 +00:00
Tamas Szentpeteri 22c92af506 Backed out 3 changesets (bug 1883720, bug 1883719, bug 1883615) for causing multiple failures. CLOSED TREE
Backed out changeset 495b9e84ba9d (bug 1883720)
Backed out changeset 5a89cbc54dd2 (bug 1883615)
Backed out changeset 9d075e352b0e (bug 1883719)
2024-05-15 13:30:17 +03:00
serge-sans-paille 863475a670 Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-05-15 07:47:55 +00:00
acseh e9228802fc Backed out 2 changesets (bug 1878764, bug 1849075) for causing build bustages and xpcshell failures on /test_content_annotation.js
Backed out changeset 8dc928e0dd33 (bug 1878764)
Backed out changeset 605e19d02f88 (bug 1849075)
2024-05-14 12:48:46 +03:00
Mike Hommey a2b11ddcc7 Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-14 07:10:44 +00:00
Mike Hommey ef436edc50 Bug 1895837 - Undo bug 1768099. r=decoder
Whatever issues there were with detect_stack_use_after_return during the
clang trunk cycle for clang 15 seem to be gone.

On the other hand, changes in clang 18 trigger a bug[1] that causes stack
misalignment in AVX-512 code when detect_stack_use_after_return is
disabled.

1. https://github.com/llvm/llvm-project/issues/91565

Differential Revision: https://phabricator.services.mozilla.com/D209907
2024-05-13 21:01:43 +00:00
Tamas Szentpeteri 597a1ab19f Backed out changeset e0e3391e5162 (bug 1895837) for causing SM bustages in 1659595.js. CLOSED TREE 2024-05-09 11:47:26 +03:00
Mike Hommey 935c22ddf7 Bug 1895837 - Undo bug 1768099. r=decoder
Whatever issues there were with detect_stack_use_after_return during the
clang trunk cycle for clang 15 seem to be gone.

On the other hand, changes in clang 18 trigger a bug[1] that causes stack
misalignment in AVX-512 code when detect_stack_use_after_return is
disabled.

1. https://github.com/llvm/llvm-project/issues/91565

Differential Revision: https://phabricator.services.mozilla.com/D209907
2024-05-09 07:49:15 +00:00
Cristian Tuns c4685ab34e Backed out 4 changesets (bug 1878764, bug 1894860, bug 1849075) for causing multiple Gtest failures. CLOSED TREE
Backed out changeset 1b6f68a55002 (bug 1878764)
Backed out changeset dbcef036309d (bug 1894860)
Backed out changeset 440056d02985 (bug 1878764)
Backed out changeset df59a0aca986 (bug 1849075)
2024-05-04 18:03:30 -04:00
Mike Hommey 41ff0f1467 Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-04 20:07:21 +00:00
Tamas Szentpeteri 6217d9f010 Backed out 2 changesets (bug 1849075, bug 1878764) for causing mass crashes at panicking.rs. CLOSED TREE
Backed out changeset e48d46145ba4 (bug 1878764)
Backed out changeset b92b25790374 (bug 1849075)
2024-05-03 00:17:49 +03:00
Mike Hommey a1e8eaa7d1 Bug 1878764 - Update builders to rustc 1.78. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208953
2024-05-02 19:35:40 +00:00
Emilio Cobos Álvarez 50eb344091 Bug 1893532 - Improve error message of HTMLInputElement.stepUp/stepDown. r=dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D208671
2024-05-01 00:11:33 +00:00