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

281 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 76360b4793 Bug 1382099 - Remove MOZ_WIDGET_GONK from mozglue/. r=glandium.
--HG--
extra : rebase_source : be872a2272b731523fdad5ee52ffcd40d87729c5
2017-07-19 18:38:54 +10:00
Tom Ritter 0591f401da Bug 1380103 Cast a DWORD (__attribute__((__stdcall__)) *)(void*) to a bare void* to fix a compiler error r=ccorcoran,dmajor
MozReview-Commit-ID: 88e6e2w5Gd1

--HG--
extra : rebase_source : 4011d6d4261c83517d54ea5c4bf08ba54a77fd0c
2017-07-11 14:26:35 -05:00
Mike Hommey ed863255b4 Bug 1378592 - Remove MOZ_REPLACE_MALLOC_LINKAGE. r=froydnj
MOZ_REPLACE_MALLOC_LINKAGE was added back when there were problems with
getting weak references working properly for replace-malloc.

Versions of OSX < 10.6 needed flat namespace, but aren't supported
anymore.

Versions of Xcode < 4.5 required flat namespace + a dummy library in
order to produce proper weak references. There is virtually nobody still
building with such an ancient toolchain.

Keeping those around doesn't /really/ hurt, except recent versions of
Xcode don't expose dyldinfo in /usr/bin, used for the configure test.
Consequently, MOZ_REPLACE_MALLOC_LINKAGE ended up being set to use the
dummy library setup, which, by using flat namespace, now causes harm in
bug 1356701, causing bug 1378332.

--HG--
extra : rebase_source : e3edc1f2cf905943c33fafeb631f2f88fc87167e
2017-07-06 10:26:04 +09:00
David Major 8f2fab9547 Bug 1378442 - Move Win64 profiler hooks to profiler_start. r=mstange 2017-07-05 18:45:31 -04:00
Nicholas Nethercote 4b364cf3f3 Bug 1375299 (part 1) - Reduce usage of MOZ_GECKO_PROFILER. r=mstange.
This patch reduces the differences between builds where the profiler is enabled
and those where the profiler is disabled. It does this by removing numerous
MOZ_GECKO_PROFILER checks.

These changes have the following consequences.

- Various functions and classes are now defined in all builds, and so can be
  used unconditionally: profiler_add_marker(), profiler_set_js_context(),
  profiler_clear_js_context(), profiler_get_pseudo_stack(), AutoProfilerLabel.
  (They are effectively no-ops in non-profiler builds, of course.)

- The no-op versions of PROFILER_* are now gone. The remaining versions are
  almost no-ops when the profiler isn't built.

--HG--
extra : rebase_source : 8fb5e8757600210c2f77865694d25162f0b7698a
2017-06-22 06:26:16 +10:00
David Major af0b39fef9 Bug 1372375: Avoid locks in EnsureWalkThreadReady during the profiler's critical section. r=mstange
EnsureWalkThreadReady takes two locks, one in _beginthreadex and another in the DLL hook setup.

We can avoid the first by not calling EnsureWalkThreadReady if we're walking a suspended thread, since we won't be using a separate WalkThread anyway.

To avoid the hook locks, I gave in and decided to go back to setting up the hooks in DllBlocklist_Initialize as originally planned.
2017-06-13 18:30:48 -04:00
Ehsan Akhgari 0b42833bd8 Bug 1370329 (part 3) - Add a Gecko Profiler label to patched_LdrLoadDll(). r=mstange.
This lets us easily identify the name of the DLL being loaded in a profile.

--HG--
extra : rebase_source : 9910910e573e5ddbad81fe1f9792a07807b074cb
2017-06-07 12:37:18 +10:00
Tom Ritter 8407066758 Bug 1365047 Turn on the Windows DLL Blocklist in MinGW r=aklotz
MozReview-Commit-ID: 3hF7iOdH89P

--HG--
extra : rebase_source : 95614960544ae55b983dbbd40e1036ff236204b3
2017-05-15 15:49:20 -05:00
Carl Corcoran d984e671a7 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=aklotz,dmajor
MozReview-Commit-ID: 8Jm1PXyRrEr

--HG--
extra : rebase_source : 1145dfccaca72b58145f0100a4e313d1c9d685be
2017-05-24 11:56:40 +02:00
David Major 89f6d51919 Bug 1180561 - Intercept msmpeg2vdec's JIT unwind callback on Win7 x64. r=aklotz
So we can avoid stack-walking their JIT code. They don't have unwind information so their callback just kills the process.
2017-05-18 16:15:29 -04:00
David Major 44b9e8090f Bug 1180561 - Cleanup - Remove the DLL blocklist's anonymous namespace. r=aklotz
It makes it really annoying to set breakpoints on patched_LdrLoadDll.
2017-05-18 16:05:32 -04:00
Mike Hommey 0400284f88 Bug 1365194 - Make `extern "C"` part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.

--HG--
extra : rebase_source : af55696262f40a9dd16a19c29edcb9bb307d4957
2017-05-16 18:46:02 +09:00
Carsten "Tomcat" Book 9c3f61e278 Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
Mike Hommey 2bd75405bc Bug 1365194 - Make `extern "C"` part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.

--HG--
extra : rebase_source : af55696262f40a9dd16a19c29edcb9bb307d4957
2017-05-16 18:46:02 +09:00
Mike Hommey 1a9d4c6f33 Bug 1363992 - Remove support for system jemalloc. r=njn
--HG--
extra : rebase_source : 9141402b6f9e84c67afc14303633d328eb5b652c
2017-05-11 13:03:20 +09:00
Makoto Kato 529993e5f8 Bug 1360429 - Part 2. Detect __ARM_NEON macro for aarch64. r=glandium
aarch64's gcc and arm's gcc with -mfpu=neon defines __ARM_NEON for NEON, so we should detect it to support NEON code.

MozReview-Commit-ID: LRMTQLctuLV

--HG--
extra : rebase_source : 9e09eb9b67824c81dc45198acd6582584a5e1652
2017-04-28 13:27:10 +09:00
Julian Seward 83969e88eb Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium
The intent of the API is to allow threads to opt-in to use a separate
mozjemalloc arena.

This indroduces a dummy shell with no actual implementation.
2017-05-12 18:08:08 +09:00
Aaron Klotz 831876bb4f Bug 1363844: Add CHILD_PROCESSES_ONLY flag to Windows DLL blocklist; r=dmajor
MozReview-Commit-ID: f9ej2Hp0DF
2017-05-11 15:50:10 -06:00
Franziskus Kiefer 9fda03a207 Bug 1359333 - detect aes-ni support, r=froydnj
MozReview-Commit-ID: 4cCVIntG9bD

--HG--
extra : rebase_source : 4e6d7450fa06417c3ab29e6c104f433e43c72df6
2017-03-31 18:59:56 +02:00
Sebastian Hengst 283a55550c Backed out changeset bd40f51b033f (bug 1362814) 2017-05-08 00:03:12 +02:00
Ehsan Akhgari 6ef7e1f3ef Bug 1362814 - Part 1: Add a Gecko Profiler label to patched_LdrLoadDll(); r=mstange
This allows us to easily identify the name of the DLL being loaded
in a profile.
2017-05-07 17:17:36 -04:00
Sebastian Hengst 39e3f84759 Backed out changeset 1fec6894255e (bug 1362814) for breaking Windows builds. r=backout 2017-05-07 17:41:38 +02:00
Ehsan Akhgari 5939be3efc Bug 1362814 - Add a Gecko Profiler label to patched_LdrLoadDll(); r=mstange
This allows us to easily identify the name of the DLL being loaded
in a profile.
2017-05-07 11:03:51 -04:00
Marco Castelluccio 295cdafff7 Bug 1233556 - Block injection of nahimicmsiosd.dll, as it can cause crashes. r=bsmedberg
--HG--
extra : rebase_source : 8adb22c6ddc15e1f2a45b8e470774ef91efee753
2017-05-04 11:15:26 +02:00
David Major eeaa91fc5c Bug 1359507: Replace the stack walk workaround lock with an atomic counter of suppressions. r=mstange,froydnj
This fixes a deadlock by removing one of the two sides of a mutual-wait.
2017-05-03 12:10:48 -04:00
philipp f939196196 Bug 1333486 - Add idmcchandler5.dll/idmcchandler5_64.dll to the blocklist. r=marco 2017-04-28 08:44:00 -04:00
Matt Howell bf294679d0 Bug 1356637 - Blocklist a Nahimic DLL which is causing app update problems. r=bsmedberg
MozReview-Commit-ID: D9iEcuTMNRx

--HG--
extra : rebase_source : 9eb1fafa297b6cc4e1fff20344fcb1c3c1092e3d
2017-04-21 08:40:13 -07:00
David Major 3b7255411e Bug 1354611: Acquire the stack walk lock in Win64's LdrLoadDll. r=aklotz
This will prevent the profiler from suspending a target thread while that thread holds the RtlLookupFunctionEntry lock, which the profiler itself also wants to use.
2017-04-20 15:09:11 -04:00
Mike Hommey 33a7e408ce Bug 1357323 - Remove the gonk code that was referenced by the build system. r=gps
--HG--
extra : rebase_source : 1d30ebcbdbcf596c944e1eec981f85db341485e5
2017-04-18 17:46:39 +09:00
Mike Hommey 34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Phil Ringnalda 607ccd57d2 Backed out changeset a50a4f9e972b (bug 1322554) for near-permaorange in Win8 debug updater xpcshell tests 2017-04-06 21:00:26 -07:00
Carl Corcoran 08fc406af4 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=dmajor
MozReview-Commit-ID: CvqZ3gXJyvo
2017-03-29 17:07:37 +02:00
philipp 18cfe68b0f Bug 1333486 - Blocklist Internet Download Manager .dll crashing on Firefox 53+. r=bsmedberg
--HG--
extra : rebase_source : 74dab10773221de563e6d8ae87b22014e747ba09
2017-03-30 12:21:00 -04:00
Sebastian Hengst f7bdfd47a4 Backed out changeset 23de710cae6f (bug 1322554) for breaking at least Windows 8 x64 builds (likely all Windows builds). r=backout on a CLOSED TREE 2017-03-30 18:47:15 +02:00
Carl Corcoran d2c868be48 Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=dmajor
MozReview-Commit-ID: I1P2I2um76i

--HG--
extra : rebase_source : 338201fd00986c228f4dd21a4f56fd500fa80984
2017-03-29 17:07:37 +02:00
Tom Ritter 57460e3e5e Bug 1344921 relocate initialization (and declaration) of variable to not allow a jump to bypass it r=froydnj
MozReview-Commit-ID: LouiRkuCAqb

--HG--
extra : rebase_source : 4a0006743e894d151c3f67439c57818a460d942c
2017-03-23 14:56:54 -05:00
Jim Mathies 3eba9a35c8 Bug 1339908 - Blocklist goobzo associated dlls. r=bsmedberg
MozReview-Commit-ID: GFfdAGL1LeG

--HG--
extra : rebase_source : 380f5482ab9c485688b452fede292ed72cfb8d79
2017-03-28 09:02:04 -05:00
Wes Kocher 6d2e245da8 Backed out changeset 5bbf6972b904 (bug 1235982) for landing prematurely a=backout
MozReview-Commit-ID: Fy7NwUoMipw
2017-03-15 14:00:47 -07:00
Tom Ritter db3ff2c559 Bug 1235982 Add CFG to firefox.exe and mozglue, and a mochitest to ensure a crash r=glandium,mconley
MozReview-Commit-ID: 1XnHH3NeGnJ

--HG--
extra : rebase_source : 3bbf02779cb4ee0a04dcea851fe81a96faec2494
2017-03-15 11:14:22 -05:00
Marco Castelluccio 170093d6d9 Bug 1339083 - Blocklist old K7TotalSecurity versions. r=aklotz
--HG--
extra : rebase_source : bba08ee37b47bd8893732e8617bfde77d9d40753
2017-02-14 08:01:00 -05:00
Christian Holler 9a15050921 Bug 1335446 - Add allocator_may_return_null=1 to default ASan options. r=glandium
MozReview-Commit-ID: AM9EdKngmMB

--HG--
extra : rebase_source : b3430bf8f8e7495ca5d6955d97922fe5f383d4ad
2017-02-06 14:23:55 +01:00
Jan Beich 9358862c72 Bug 1334777 - Hide unused has_avx() if CXXFLAGS have -mavx. r=glandium
MozReview-Commit-ID: 1IWEU8HrmtW

--HG--
extra : rebase_source : b7f6e088a0b500ee77dd344a16aacc3f0dcaac29
2017-01-28 10:51:06 +00:00
David Major 850b25389e Bug 1335163 - Remove the now-unused XPCOM ASLR checks in the DLL blocklist. r=bsmedberg
MozReview-Commit-ID: 2iY5g72d4xg

--HG--
extra : rebase_source : 309eb59fe0a98f0a4dfd384b3028a0ec107220c5
2017-02-01 10:52:13 +13:00
Benjamin Smedberg ca77995f5d Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal
MozReview-Commit-ID: 52vPyDXdFte

--HG--
extra : rebase_source : c3217730bb70eb7319152dd07536b12f49d6a597
2017-01-30 11:24:10 -05:00
Mike Hommey 9d2b3754b7 Bug 1332523 - Move message indicating when the blocklist is initialized after user32.dll was loaded to the blocklist itself. r=dmajor
--HG--
extra : rebase_source : 4aea579104d2bad56a91f67e66d0af8c4ada9c3d
2017-01-12 11:13:40 +09:00
Chris Peterson ae18f9a8b4 Bug 1329563 - Remove DLL blocklist checks for Windows XP. r=aklotz
MozReview-Commit-ID: 3zZDsjQii3o

--HG--
extra : rebase_source : 8880c393ee1a205c6221deeee416429a5272b48c
2017-01-08 20:55:05 -08:00
Ehsan Akhgari 1c687043f1 Bug 1251936 - Mark AutoSetXPCOMLoadOnMainThread's constructor as explicit 2016-12-23 21:03:21 -05:00
Ting-Yu Chou 19a9104684 Bug 1322463 - Replace snprintf/vsnprintf by SprintfLiteral/VsprintfLiteral for what clang plugin reports on Windows. r=Ehsan
MozReview-Commit-ID: 2bFcM53uEPb

--HG--
extra : rebase_source : 4e69d3f3f95c18bcbf731a17cb98fa456ddaa118
2016-12-09 09:47:19 +08:00
Emanuel Hoogeveen e0a81d7503 Bug 1309573 - Part 2: Define MOZ_HAS_MOZGLUE in various places so that the crash reason gets used. r=glandium
--HG--
extra : rebase_source : d55e8dd75469759f333366bdf9662178ff0a2474
2016-11-08 03:53:00 -05:00
Aaron Klotz 4e2ad82fdd Bug 1311969: Add nzbrcom.dll to blocklist; r=bsmedberg
MozReview-Commit-ID: BFVajNJNUdw

--HG--
extra : rebase_source : c5edc09b343b03bf722acd75995ce86388170071
2016-11-03 14:22:20 -06:00