Chun-Min Chang
61d788c585
Bug 1238038 - Create an input-only audio source r=padenot
...
This patch creates an class managing an input-only audio stream within a
task thread. This class will be used as a source generating the audio
data to a NonNativeInputTrack in the following patch.
Depends on D116535
Differential Revision: https://phabricator.services.mozilla.com/D137911
2022-04-18 18:45:35 +00:00
Steve Fink
e4b6669027
Bug 1762537 - Omit some annotations when compiling under sixgill to avoid incompatibilities between what clang and gcc allow for lambda annotations r=firefox-static-analysis-reviewers,andi
...
Differential Revision: https://phabricator.services.mozilla.com/D142714
2022-04-15 15:43:10 +00:00
Christian Holler
8e5b003502
Bug 1764259 - [Fuzzing] Nyx replay mode. r=truber
...
Differential Revision: https://phabricator.services.mozilla.com/D143458
2022-04-14 12:10:14 +00:00
Christian Holler
cde0054620
Bug 1764258 - [Fuzzing] Nyx API enhancements. r=truber
...
Differential Revision: https://phabricator.services.mozilla.com/D143457
2022-04-14 12:10:13 +00:00
Mike Hommey
c8251f91f4
Bug 1758780 - Fallthrough to <atomic> for wasi when using clang >= 14. r=nika
...
Clang 14 added a dummy backoff policy for atomic polling that doesn't
know about threads, which presumably WASI can use.
See https://reviews.llvm.org/D114109 .
Differential Revision: https://phabricator.services.mozilla.com/D143173
2022-04-13 03:02:24 +00:00
Emilio Cobos Álvarez
a9a85f3eca
Bug 1763741 - Make gfx types take the right amount of space in MSVC. r=jrmuizel,glandium
...
This is an attribute that could be useful elsewhere so seems worth
putting in mfbt.
Differential Revision: https://phabricator.services.mozilla.com/D143249
2022-04-08 13:27:28 +00:00
Nika Layzell
7743d4fd62
Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8
...
There weren't that many uses of the existing typedef, so it seemed like
it might be worthwhile to just replace all uses of the previous typedef
with the stl-like one.
Differential Revision: https://phabricator.services.mozilla.com/D142705
2022-04-01 17:00:25 +00:00
Randell Jesup
da67253143
Bug 1207753 - minor cleanup of a comment r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D142084
2022-03-25 19:44:26 +00:00
Nika Layzell
c5e36e29ae
Bug 1760357 - Part 6: Don't generate thread safety annotations on clang < 8.0, r=jesup
...
Depends on D141536
Differential Revision: https://phabricator.services.mozilla.com/D141701
2022-03-22 14:59:42 +00:00
Emilio Cobos Álvarez
b055f536ea
Bug 1758702 - Allow ThreadSafeWeakPtr<IncompleteType> to work. r=glandium
...
This will be used to avoid problematic includes from WorkerPrivate.h,
and it matches the behavior of RefPtr<> and WeakPtr<>.
Differential Revision: https://phabricator.services.mozilla.com/D140658
2022-03-17 15:24:40 +00:00
criss
9302fa739c
Backed out 2 changesets (bug 1758702) for causing build bustages. CLOSED TREE
...
Backed out changeset 3e00d9203851 (bug 1758702)
Backed out changeset 66625baf0875 (bug 1758702)
2022-03-17 15:21:31 +02:00
Emilio Cobos Álvarez
370bce32dc
Bug 1758702 - Allow ThreadSafeWeakPtr<IncompleteType> to work. r=glandium
...
This will be used to avoid problematic includes from WorkerPrivate.h,
and it matches the behavior of RefPtr<> and WeakPtr<>.
Differential Revision: https://phabricator.services.mozilla.com/D140658
2022-03-17 12:15:20 +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
Zhao Jiazhong
62341514c5
Bug 1756570 - [loong64] Add basic build support for LoongArch64 port. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D139567
2022-02-25 03:42:34 +00:00
Toshihito Kikuchi
076c992786
Bug 1750791 - Part 1: Add LinkedList::mergeBack and LinkedList::splice. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D137244
2022-02-24 15:00:27 +00:00
Kelsey Gilbert
aeeb1e199d
Bug 1750310 - Centralize and reuse pixelstorei pack/unpack handling. r=lsalzman
...
* Accept that finding an explicit unpack for a given stride might fail.
* Directly use the logic from the GLES spec for unpacking stride calculations.
* Use structuredSrcSize member.
* Calc explicit unpack based on dstStride, not srcStride.
Differential Revision: https://phabricator.services.mozilla.com/D136052
2022-02-12 02:20:42 +00:00
Nika Layzell
fa19de50d5
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium
...
These assertions are already diagnostic asserts, and this will make
failures to check Maybe into safe crashes rather than security bugs on
all branches.
A failure to check Maybe is more dangerous than a null pointer
dereference, as the generated code will produce a valid reference to
uninitialized data rather than a null reference which should safely
segfault.
Differential Revision: https://phabricator.services.mozilla.com/D138208
2022-02-11 16:28:01 +00:00
Paul Adenot
f0f4d715ec
Bug 1752345 - Allow calling AvailableWrite or AvailableRead on any thread. r=alwu
...
This is safe in fact safe. The data might be a bit late, but it's going to be
correct.
Differential Revision: https://phabricator.services.mozilla.com/D137302
2022-02-03 15:18:13 +00:00
Kagami Sascha Rosylight
901a35ec10
Bug 1748874 - Part 5: Require CAN_RUN_SCRIPT to be at the first declaration r=andi
...
Depends on D135404
Differential Revision: https://phabricator.services.mozilla.com/D135405
2022-01-11 11:52:27 +00:00
Mike Hommey
b89cb6ae18
Bug 1748969 - Move definition of MOZ_DIAGNOSTIC_ASSERT_ENABLED to configure. r=emilio
...
Original patch by emilio.
Differential Revision: https://phabricator.services.mozilla.com/D135321
2022-01-07 21:24:44 +00:00
Mike Hommey
fa1a339437
Bug 1748969 - Enable diagnostic asserts on early beta instead of dev edition. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D135320
2022-01-07 21:24:44 +00:00
Chris Peterson
f0c33cdf01
Bug 1745118 - double-conversion: add MOZ_CRASH reasons to use-mozilla-assertions.patch. r=glandium
...
Adding MOZ_CRASH reasons will help disambiguate any of these crashes in crash ping telemetry (which doesn't have symbolicated crash signatures or stack traces like crash reports).
Differential Revision: https://phabricator.services.mozilla.com/D133582
2021-12-22 04:34:13 +00:00
Chris Peterson
e1a50b756e
Bug 1745118 - double-conversion: update double-conversion to version 3.1.6 (upstream revision 60e08d0). r=glandium
...
* Fix update.sh to use macOS-compatible mktemp -d flag.
* Rebase use-mozilla-assertions.patch to fix merge conflict.
* Rebase debug-only-functions.patch to fix merge conflict.
* Rebase to-fixed-dbl-max.patch to fix merge conflict.
* Remove to-fixed-digits-after-point.patch because upstream has this fix now.
https://github.com/google/double-conversion/releases/tag/v3.1.6
Cleanups and new architectures:
* Features some code cleanups.
* Adds the following new architectures: loongarch, xtensa, nios2, e2k.
Differential Revision: https://phabricator.services.mozilla.com/D133581
2021-12-22 04:34:12 +00:00
Mike Hommey
b6a4e7c184
Bug 1746540 - Move --enable-logrefcnt to python configure. r=nika,firefox-build-system-reviewers,mhentges
...
And simplify the defines it sets.
Differential Revision: https://phabricator.services.mozilla.com/D134099
2021-12-18 00:32:35 +00:00
Sandor Molnar
eac95b4a93
Backed out 6 changesets (bug 1746539, bug 1746541, bug 1746544, bug 1746540, bug 1746542, bug 1746299) for causing android build bustages in cutils/properties. CLOSED TREE
...
Backed out changeset 9352292fa327 (bug 1746544)
Backed out changeset 3cc761d90071 (bug 1746542)
Backed out changeset 8d8fc11e8012 (bug 1746541)
Backed out changeset 5f53612aad1b (bug 1746540)
Backed out changeset afb601202b24 (bug 1746539)
Backed out changeset 90027c44c9af (bug 1746299)
2021-12-18 01:28:06 +02:00
Mike Hommey
86100100a6
Bug 1746540 - Move --enable-logrefcnt to python configure. r=nika,firefox-build-system-reviewers,mhentges
...
And simplify the defines it sets.
Differential Revision: https://phabricator.services.mozilla.com/D134099
2021-12-17 22:52:09 +00:00
Randell Jesup
c075d29d20
Bug 1625161: Move ASSERT_UNLESS_FUZZING() to mfbt and hook into FUZZING r=glandium,decoder
...
Differential Revision: https://phabricator.services.mozilla.com/D133166
2021-12-16 04:13:48 +00:00
Ryan VanderMeulen
658f7ee013
Bug 1743896 - Update xxHash to version 0.8.1. r=dthayer
...
Differential Revision: https://phabricator.services.mozilla.com/D132631
2021-12-02 01:53:56 +00:00
Chris Peterson
f6fdbf028a
Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
...
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.
There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.
Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Jan Varga
ead7da2d9c
Bug 1732642 - Handle complex types in MOZ_TO_RESULT_INVOKE_MEMBER_TYPED; r=dom-storage-reviewers,jari
...
Differential Revision: https://phabricator.services.mozilla.com/D126785
2021-11-30 05:05:53 +00:00
Jan Varga
a7f7389681
Bug 1731969 - Rename ToResultInvoke member function overloads to ToResultInvokeMember; r=dom-storage-reviewers,jari
...
Differential Revision: https://phabricator.services.mozilla.com/D126328
2021-11-30 05:05:53 +00:00
Jan Varga
0115137758
Bug 1731969 - Rename ToResultInvokeMemberFunction to ToResultInvokeMemberInternal; r=dom-storage-reviewers,jari
...
Differential Revision: https://phabricator.services.mozilla.com/D126327
2021-11-30 05:05:52 +00:00
Nika Layzell
b2dc7057a5
Bug 1743012 - Add missing `constexpr` qualifiers in `CheckedInt`, r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D132173
2021-11-26 19:18:49 +00:00
Christian Holler
6110156f18
Bug 1738278 - Add fuzzing snapshot API. r=truber,firefox-build-system-reviewers,glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D129823
2021-11-25 11:20:43 +00:00
Nika Layzell
972727feaa
Bug 1734735 - Part 2: Support getter_Transfers with non-pointer UniquePtr types, r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D128211
2021-11-23 16:15:21 +00:00
Nika Layzell
47ec9bbc3e
Bug 1734735 - Part 1: Add UniqueMach{Send,Recv}Right types, r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D128210
2021-11-23 16:15:20 +00:00
Jonathan Kew
1690055f4e
Bug 1742115 - Fix UnsafeConvertValidUtf8toUtf16 to wrap the correct Rust implementation. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D131645
2021-11-19 18:57:44 +00:00
Jan Varga
17ccc040dd
Bug 1731806 - Allow ToResultInvoke to return other nsresult like error types; r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D126273
2021-11-12 11:56:02 +00:00
Andreas Farre
4cf077692f
Bug 1733963 - Part 2: Add BitSet tests. r=glandium
...
Depends on D127447
Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-09 12:34:51 +00:00
Andreas Farre
f31ef6faa9
Bug 1733963 - Part 1: Make BitSet work as storage for EnumSet. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D127447
2021-11-09 12:34:51 +00:00
Marian-Vasile Laza
7241c1f9e9
Backed out 3 changesets (bug 1733963) for causing build bustages on TestEnumSet.cpp. CLOSED TREE
...
Backed out changeset 83b804a449c2 (bug 1733963)
Backed out changeset 434e10a0c39a (bug 1733963)
Backed out changeset d7d88b948f71 (bug 1733963)
2021-11-08 19:42:46 +02:00
Andreas Farre
e7ee97fb29
Bug 1733963 - Part 2: Add BitSet tests. r=glandium
...
Depends on D127447
Differential Revision: https://phabricator.services.mozilla.com/D127448
2021-11-08 16:01:26 +00:00
Andreas Farre
5de97dac8c
Bug 1733963 - Part 1: Make BitSet work as storage for EnumSet. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D127447
2021-11-08 16:01:25 +00:00