Nicholas Nethercote
8a68e6fb83
Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
...
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.
This patch greatly simplifies how things are exposed. The starting point is:
- GeckoProfiler.h can be #included unconditionally;
- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.
In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.
The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.
Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Sebastian Hengst
5e0b457b10
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
Aaron Klotz
aa44e53f36
Bug 1393600: Ensure that the handler sends a known interface to external clients; r=jimm
...
MozReview-Commit-ID: F5vxF2pB347
2017-09-24 14:32:36 -06:00
Aaron Klotz
35c65ef535
Bug 1393600: Prevent mismatches between the handler's expected interface and the one being provided by content; r=jimm
...
MozReview-Commit-ID: 4yQENc7i4LS
2017-09-21 16:53:56 -06:00
Tom Ritter
3b81e79e5a
Bug 1405417 Add typename keyword in ipc/mscom/PassthruProxy.h to resolve ambiguity around member type r=aklotz
...
MozReview-Commit-ID: 6zEBdk8bKb9
--HG--
extra : rebase_source : 7e7c7a240abbe066d7f4e1d8b6619471b76c1c2d
2017-10-03 12:32:24 -05:00
Aaron Klotz
f88fa2ef6c
Bug 1399557: Add Environment to mscom::ProxyStream and define it for IAccessible; r=jimm
...
MozReview-Commit-ID: 4wBjnFW9GRa
--HG--
extra : rebase_source : 43308d5c1d926300be222cb59d4913f61cc6c060
2017-09-29 15:41:28 -06:00
Aaron Klotz
da8dc618c4
Bug 1383501: Obtain and report the current activation context's manifest path; r=jimm
...
MozReview-Commit-ID: HJ1zNoEMzvS
2017-09-19 14:35:27 -06:00
Aaron Klotz
143a969b94
Bug 1399557: Follow-up: Add check for expected error code; r=bustage
...
--HG--
extra : rebase_source : bf2db1dc3f7869f360bd22557a793cc3f770aee7
extra : amend_source : 9fc98cc81cac846dcde68abad2ff1ab0c3f46dad
2017-09-20 14:40:41 -06:00
Aaron Klotz
c0a1a84af9
Bug 1399557: Add diagnostic asserts to interceptor creation code; r=jimm
...
MozReview-Commit-ID: 9fJxHbxCmgh
2017-09-18 10:49:15 -06:00
Aaron Klotz
6fdf5f0f15
Bug 1383501: Diagnostic assert when CoMarshalInterface returns E_INVALIDARG; r=jimm
...
MozReview-Commit-ID: JDSKZLgij83
2017-09-18 11:04:09 -06:00
Sebastian Hengst
ecf716b8bb
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Aaron Klotz
5ff52c6547
Bug 1398907: Handler path should be written using length of null-terminated string in bytes, not size of the buffer; r=eeejay
...
MozReview-Commit-ID: 64Zv3obsQie
--HG--
extra : amend_source : bddaf442ed1af677aac6d03417fa2afc754b07eb
2017-09-11 13:47:38 -06:00
Chris Manchester
c0a229d4c3
Bug 1386876
- Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
...
MozReview-Commit-ID: FMEtb5PY7iP
--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Aaron Klotz
d8518e56ab
Bug 1383501: Move stream creation below buffer size check in mscom::ProxyStream::ProxyStream; r=jimm
...
MozReview-Commit-ID: fG4an6mSiR
2017-09-06 10:38:13 -06:00
Bevis Tseng
cd0ef77297
Bug 1390076 - Label MainThreadInvoker using SystemGroup. r=aklotz
2017-08-28 14:11:38 +08:00
Aaron Klotz
5e15da4ff9
Bug 1395329: Modify mscom::Interceptor::Create to properly initialize IUnknown interfaces; r=jimm
...
MozReview-Commit-ID: 7ZLzpH030Of
--HG--
extra : rebase_source : c49df7205a20c8ef4afbfb31b6cc5f54475179a0
2017-08-30 16:34:43 -06:00
Sebastian Hengst
a895d4ae49
Backed out changeset 0eb505a8ac7c (bug 1395329) for Windows static bustage in Interceptor.obj. r=backout
2017-09-01 19:58:06 +02:00
Aaron Klotz
64fc054dc6
Bug 1395329: Modify mscom::Interceptor::Create to properly initialize IUnknown interfaces; r=jimm
...
MozReview-Commit-ID: 7ZLzpH030Of
--HG--
extra : rebase_source : 24fd48eb72bcee18bbc75a670d0035362dbeb92d
2017-08-30 16:34:43 -06:00
Aaron Klotz
693b60cf9c
Bug 1395840: Backed out changeset e7f2eaf99d46 on suspicion of breaking virtual buffers in a11y clients; r=backout
2017-09-01 10:44:41 -06:00
Aaron Klotz
a55d72f6da
Bug 1383501: Move a crash annotation so that it does not mask a previous annotation with the same key; r=handyman
...
MozReview-Commit-ID: 9u7VTKDglrS
2017-08-31 11:31:28 -06:00
Sebastian Hengst
030c11d7dd
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 4IUksc3Mn9i
2017-08-31 14:36:51 +02:00
Aaron Klotz
81a34aa6ab
Bug 1383501: Change remaining references to HKEY_CLASSES_ROOT to HKEY_LOCAL_MACHINE in mscom-related code; r=jimm
...
MozReview-Commit-ID: GAV3iqapXss
--HG--
extra : rebase_source : c0ed0578ca2e560203fc6c1a8fd172272209e84c
2017-08-28 15:15:35 -06:00
Aaron Klotz
2614073612
Bug 1393600: Prevent mismatches between the handler's expected interface and the one being provided by content; r=jimm
...
MozReview-Commit-ID: 9DTZHplk4Cz
--HG--
extra : rebase_source : 6c948e34b2bab71ba9a8df21b3d49495e2c9477b
2017-08-24 15:31:02 -06:00
Aaron Klotz
f550f56c7e
Bug 1394395 - Fix mscom build when ACCESSIBILITY is disabled. r=jimm
...
MozReview-Commit-ID: KmMTWR9FQcx
--HG--
extra : rebase_source : afb5ebce0c9478b4fba26610c2ee4292ee4afcb2
2017-08-28 12:27:28 -06:00
Wes Kocher
2198196808
Merge inbound to central, a=merge
...
MozReview-Commit-ID: G6QZZ8RGk6n
2017-08-29 16:14:22 -07:00
Aaron Klotz
73a014d007
Bug 1383501: Restrict mscom::MainThreadRuntime crash annotations to chrome and content to avoid false-positive leakchecks in gpu process; r=bustage CLOSED TREE
...
--HG--
extra : rebase_source : df8afbd05f6743163710cb29b1dab18a7aeaed3a
2017-08-29 12:00:04 -06:00
Aaron Klotz
436ebb0970
Bug 1383501: Follow-up: Remove unnecessary assertion; r=bustage
2017-08-29 11:32:19 -06:00
Aaron Klotz
de44372d1c
Bug 1383501: More crash annotation improvements for mscom proxy unmarshaling failures; r=jimm
...
MozReview-Commit-ID: DIOsFREuhxj
--HG--
rename : ipc/mscom/InterfaceRegistrationAnnotator.cpp => ipc/mscom/RegistrationAnnotator.cpp
rename : ipc/mscom/InterfaceRegistrationAnnotator.h => ipc/mscom/RegistrationAnnotator.h
2017-08-28 15:16:20 -06:00
Tom Ritter
ecc4b5ef67
Bug 1394868 Fix include casing in VTableBuilder.h to fix MinGW build r=aklotz
...
MozReview-Commit-ID: 8YHKyOOd7S5
--HG--
extra : rebase_source : d1ae0def3418235632b2ac8d671d4e8d3f6fa2b4
2017-08-29 11:34:58 -05:00
Aaron Klotz
5921c2115b
Bug 1393589: Refactor NOPING marshaling into its own class, mscom::FastMarshaler, and use it with IGeckoBackChannel; r=jimm
...
MozReview-Commit-ID: 9osDoYcvtWV
--HG--
extra : rebase_source : 9ead42f1b0c79f11b15121274a996d33d7ad4830
2017-08-17 15:54:28 -06:00
Aaron Klotz
d7d645f5c4
Bug 1390652: Part 3 - Add proxy wrapper that passes its inner proxy through content as a blob; r=jimm
...
MozReview-Commit-ID: A4pAyiuJUlz
2017-08-21 15:47:44 -06:00
Aaron Klotz
153e6759b5
Bug 1390652: Part 2 - Add support for TABLESTRONG marshaling to mscom::ProxyStream; r=jimm
...
MozReview-Commit-ID: 8hSvkULxF50
2017-08-16 16:31:07 -06:00
Ryan VanderMeulen
2f60ba6fc6
Merge m-c to autoland. a=merge
...
CLOSED TREE
--HG--
extra : amend_source : 57c6e5e3155c1ad79d409f8a71c40704297b0600
2017-08-24 20:59:40 -04:00
Tom Ritter
9f954680d0
Bug 1392688 Make variable DebugOnly to silence warning about it being unused r=jld
...
MozReview-Commit-ID: 7wSkP2Lcd0W
--HG--
extra : rebase_source : 1aa49424442f9bc278c257a3a65d93b22f04aea8
2017-08-22 12:41:24 -05:00
Aaron Klotz
bd05dcbb61
Bug 1392681: Move IStream creation out of mscom::ProxyStream into its own utility functions; r=jimm
...
MozReview-Commit-ID: EucWtw0YeBI
2017-08-22 10:48:12 -06:00
Tom Ritter
d0293ed01d
Bug 1392684 Remove const qualifier that gets discarded after function return in mscom::AgileReference r=aklotz
...
gcc throws a warning-as-error saying that the const qualifier will be ignored by function callers.
Remove the const qualifier to remove the warning.
MozReview-Commit-ID: JRQMz6Zdcdz
--HG--
extra : rebase_source : 687a7b310270823180b848d6c65cba7ba688b2ae
2017-08-22 17:25:27 -05:00
Tom Ritter
c9aa053d8a
Bug 1394874 Fix function order and add include to fix MinGW build r=aklotz
...
nsPrintfCString.h was not included, so it caused an error
GetStringValue was called before it was defined
MozReview-Commit-ID: HYoyWyaxqaZ
--HG--
extra : rebase_source : bf2c253cdba0c2fcf079a5b9bb275d39c6074f44
2017-08-30 00:36:14 -05:00
Aaron Klotz
322aa4efee
Bug 1383501: Add crash report annotations to proxy unmarshaling failure paths; r=jimm
...
--HG--
extra : amend_source : 69af068238f7792d2e579e02031d0b1e67b95e52
2017-08-09 15:07:11 -06:00
Georg Koppen
235a9211b1
Bug 1372959 - Fix broken mingw-w64 build with --enable-accessibility. r=aklotz
...
This is a patch originally proposed by Jacek Caban.
--HG--
extra : rebase_source : 6f4c8049baec67f00484364b36a98d1a583eb2b5
2017-08-09 12:49:45 +02:00
Bill McCloskey
81720f1abb
Bug 1384336 - Fix to MainThreadInvoker to avoid deadlocks (r=aklotz)
...
When removing our Windows message loop pumping code in the content
process, a11y code on the MTA thread must have some way to wake up the
main thread. The main thread could be blocked either on a conditional
variable waiting for a Gecko event, or it could be blocked waiting on
a Windows HANDLE in IPC code (doing a sync message send). In the
former case, we wake it up by posting an event to the main thread. In
the latter case, we continue to use the asynchronous procedure call
mechanism.
MozReview-Commit-ID: FN6KWaGo9Zl
2017-08-09 21:24:20 -07:00
Aaron Klotz
13318abe9e
Bug 1386422: Clean up error handling and stream positioning in StreamHandlerFromOBJREF; r=jimm
...
MozReview-Commit-ID: HmbZeX76bkb
2017-08-01 15:43:26 -06:00
Aaron Klotz
9788ece7db
Bug 1384328: Follow-up: Fix some error handling problems exposed by 71df96e65afa; r=bustage
...
MozReview-Commit-ID: GOar3lF4kCr
2017-08-01 15:11:34 -06:00
Aaron Klotz
43fe35a023
Bug 1384328: Marshal proxies destined for parent main thread with MSHLFLAGS_NOPING; r=jimm
...
MozReview-Commit-ID: Jfd4reMNYU0
--HG--
extra : rebase_source : 313b8db3381b730cc06843658b56a9fe9b4fa54c
2017-07-31 16:11:19 -06:00
Bevis Tseng
a7505864a8
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
...
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Aaron Klotz
748441ac46
Bug 1383260: Fix problems with unmarshaling handler-wrapped object when in its original apartment; r=jimm
2017-07-21 16:16:16 -06:00
Nathan Froyd
d501af7ca9
Bug 1378973
- label mscom's MainThreadRelease runnable; r=billm
...
These pointers don't touch things in the DOM, so SystemGroup is fine for
releasing them.
2017-07-25 11:17:32 -04:00
Aaron Klotz
91e2402723
Bug 1381618: Make mscom::AgileReference::mIid be an IID instead of REFIID; r=jimm
...
MozReview-Commit-ID: 58rKbw53ZID
2017-07-17 14:35:58 -06:00
Aaron Klotz
24cb1e1776
Bug 1379643: When running under sandbox level >= 3, parent should retain IStream of marshaled interface to be destroyed later; r=jimm
...
MozReview-Commit-ID: Egb6Yahdbxm
--HG--
extra : rebase_source : a59cfdfdbd1203b89822e68765bd5a0f35b67ada
2017-07-19 12:07:45 -06:00
Tom Ritter
22bb00663c
Bug 1380147 Correct Windows flag name r=jld
...
MozReview-Commit-ID: mO7gO99fDV
--HG--
extra : rebase_source : 770d37802db80d8f4e98c389bf2d51bdd125dcae
2017-07-12 13:42:57 -05:00
Andrea Marchesini
50f9ea47a3
Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm
2017-07-14 08:49:22 +02:00