Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Mike Hommey
d94fd2e580
Bug 1539459 - Fix Unused variable warning in nsSigHandlers.cpp on non-x86/x86_64 Linux. r=gsvelto
...
Differential Revision: https://phabricator.services.mozilla.com/D25065
--HG--
extra : moz-landing-system : lando
2019-03-27 15:21:52 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jed Davis
bfc90a5627
Bug 1401776 - Raise fd limit to 4096 on Unix. r=glandium,mcmanus
...
This is to accommodate non-networking fd usage (IPC transports, various
databases, .xpi files, etc.), so it's separate from Necko's existing
manipulation of the fd limit, which is tied into Necko's internal limits
on how many sockets it will try to poll at once.
Note that resource limits are inherited by child processes, so this needs
to be done only in the parent.
This patch also removes similar code used on Solaris and Mac OS X. The
Mac case (bug 1036682) refers to fd use by graphics textures, which
shouldn't be consuming fds anymore (even transiently) as of bug 1161166.
MozReview-Commit-ID: 2uodrkW5sUn
--HG--
extra : rebase_source : 5306f4995000459b89bed048ecafba3c262bbbdf
2018-05-10 17:36:32 -06:00
Mike Hommey
ee54ae2104
Bug 1390776 - Put definition and uses of gProgname under #ifdef CRAWL_STACK_ON_SIGSEGV. r=njn
...
gProgname is actually never used outside #ifdef CRAWL_STACK_ON_SIGSEGV,
and it being defined and filled with a strdup even when not used leads
to a (purposeful, but useless) leak.
The leak was not detected so far because GCC 4.9 generated a call to
PL_strdup followed by a store to gProgname, while GCC 6 keeps the
PL_strdup but is smart enough to figure out it doesn't need to store to
gProgname (and to not keep space for that variable).
So with GCC 4.9, the leak was not considered a leak because it was still
reachable, but with GCC 6, it's not reachable anymore, and thus
considered as a leak.
--HG--
extra : rebase_source : c189f992d710fddb43e04854b5b780ebfaf590ef
2017-08-16 17:17:08 +09:00
Nicholas Nethercote
08e54b7c13
Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium.
...
MozStackWalk() is different on Windows to the other platforms. It has two extra
arguments, which can be used to walk the stack of a different thread.
This patch makes those differences clearer. Instead of having a single function
and forbidding those two arguments on non-Windows, it removes those arguments
from MozStackWalk, and splits off MozStackWalkThread() which retains them. This
also allows those arguments to have more appropriate types (HANDLE instead of
uintptr_t; CONTEXT* instead of than void*) and names (aContext instead of
aPlatformData).
The patch also removes unnecessary reinterpret_casts for the aClosure argument
at a couple of MozStackWalk() callsites.
--HG--
extra : rebase_source : 111ab7d6426d7be921facc2264f6db86c501d127
2017-07-27 12:46:47 +10:00
Sylvestre Ledru
4e9cf83ee8
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
David Anderson
a27e168838
Ignore SIGINT on all subprocesses. (bug 1277068, r=billm)
2016-05-31 21:49:31 -07:00
Nicholas Nethercote
70bf1444e7
Bug 1255655 - Heap-allocate _progname. r=froydnj.
...
This saves almost 1 KiB per process.
--HG--
extra : rebase_source : 56e7d9451b0c647b1672dc23e6bc1117c5a20388
2016-03-11 13:51:13 +11:00
Nicholas Nethercote
e1824580b7
Bug 1181411 - Test some expected aborts in PLDHashTable. r=glandium.
2015-07-12 18:50:21 -07:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Benoit Girard
8d6a67f6d3
Bug 1172216 - Move nsStackwalk to mozglue. r=glandium
...
--HG--
rename : xpcom/base/nsStackWalk.cpp => mozglue/misc/StackWalk.cpp
rename : xpcom/base/nsStackWalk.h => mozglue/misc/StackWalk.h
extra : commitid : EMbWGfjKvdq
extra : rebase_source : b7308eb569cc1a019d3b7a92aaff0de7a49b5682
2015-06-10 16:32:45 -04:00
Felix Janda
3473bdec58
Bug 1130710 - xre: Use stdint uint*_t instead of nonstandard __uint*_t. r=bsmedberg
2015-02-05 22:47:21 +01:00
Kyle Huey
676dcb5e20
Bug 1090598: Once we have hit the ah_crap_handler, allow any process (such as gdb) to ptrace us. r=froydnj
2014-10-28 18:27:53 -07:00
Nathan Froyd
b86d2e69fd
Bug 1080108 - don't redefine STATUS_FLOAT_* values in nsSigHandlers.cpp; r=bsmedberg
...
Including <windows.h> picks these up, as recent builds indicate by warning:
c:\builds\moz2_slave\m-in-w32-000000000000000000000\build\toolkit\xre\nsSigHandlers.cpp(341) : warning C4005: 'STATUS_FLOAT_MULTIPLE_FAULTS' : macro redefinition
c:\Program Files (x86)\Windows Kits\8.0\include\um\winnt.h(2127) : see previous definition of 'STATUS_FLOAT_MULTIPLE_FAULTS'
c:\builds\moz2_slave\m-in-w32-000000000000000000000\build\toolkit\xre\nsSigHandlers.cpp(342) : warning C4005: 'STATUS_FLOAT_MULTIPLE_TRAPS' : macro redefinition
c:\Program Files (x86)\Windows Kits\8.0\include\um\winnt.h(2128) : see previous definition of 'STATUS_FLOAT_MULTIPLE_TRAPS'
2014-10-08 16:05:36 -04:00
Nicholas Nethercote
94adb30f77
Bug 1062709 (part 2, attempt 2) - Clean up stack printing and fixing. r=dbaron.
...
--HG--
extra : rebase_source : 626fd23a14ec90cfc9807c3d555169ec6463d19d
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
2eb56008e2
Bug 1062709 (part 1, attempt 2) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
...
--HG--
extra : rebase_source : 4f7060a9ae0bed180899651c50e8ea8857e72d63
2014-09-10 21:47:01 -07:00
Ed Morley
2d0f9579b5
Backed out changeset a0b82c954206 (bug 1062709) for Windows mochitest 5 hangs
2014-10-03 15:06:16 +01:00
Ed Morley
9e223d8a19
Backed out changeset 7a1b7d7eba12 (bug 1062709)
2014-10-03 15:05:26 +01:00
Nicholas Nethercote
5a257b83f9
Bug 1062709 (part 2) - Clean up stack printing and fixing. r=dbaron.
...
--HG--
extra : rebase_source : 18158d4474cb8826813a3866eba57b710e14db99
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
c9c64de53c
Bug 1062709 (part 1) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
...
--HG--
extra : rebase_source : 0f9b2d6310433ed56f5552706fcf2a96571aee25
2014-09-10 21:47:01 -07:00
Chris Peterson
e56956aa2f
Bug 1032644 - Fix some -Wunused warnings in non-unified OS X build. r=ehsan
2014-07-02 18:55:19 -07:00
Ehsan Akhgari
d91d200572
Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg
2014-02-10 17:57:01 -05:00
Birunthan Mohanathas
b2658eb131
Bug 784739 - Switch from NULL to nullptr in toolkit/; r=ehsan
2013-10-10 16:36:42 -04:00
Bill McCloskey
59df15a874
Bug 902208 - Handle SIGINT in child processes (r=ted)
2013-08-14 14:48:32 -07:00
Nicholas Nethercote
1c4b07debe
Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron.
2012-12-20 21:31:57 -08:00
Bas Schouten
5c2da9fbfd
Bug 816117 - Part 1: Add the ability to pass around a windows Thread Context to StackWalkMain64. r=ehsan
2012-12-08 06:15:21 +01:00
Phil Ringnalda
03892eaa4c
Back out 63105f3adf34 (bug 721843) for xpcshell timeouts
2012-10-01 20:43:27 -07:00
Benoit Girard
432b7c8fd8
Bug 721843 - Add just-in-time debugging by using CRAWL_STACK_ON_SIGSEGV on non official builds for mac/linux. r=ted
2012-10-01 22:09:20 -04:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Benoit Girard
325b77e999
Bug 766579 - Part 1: Add SP param to NS_StackWalk. r=dbaron
...
--HG--
extra : rebase_source : dd4905ffadf5fe9327449fffdfbc665b05d74a6a
2012-06-27 16:08:21 -04:00
Martin Stransky
b057ab26b1
Bug 627699 - Port GTK2 to GTK3, toolkit part, r=karlt
2012-06-16 18:06:10 +12:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
a6373ebfc3
Bug 713278 - Teach NS_StackWalk to walk the stack of other threads too on Windows; r=dbaron
2011-12-23 18:14:09 -05:00
Makoto Kato
89bf0597c8
Bug 681202 - Add Android x86 target. r=glandium
2011-09-29 13:39:03 +09:00
Brad Lassey
c398b11302
bug 617115 - support building with andorid NDKr5 r=ted
2011-04-01 16:47:37 -07:00
Matheus Kerschbaum
4eb6429f47
Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg
2011-04-02 19:14:00 -07:00
Mitchell Field
a6788f0842
Bug 627277 - Remove (broken) BeOS support. r=biesi,dwitte,gavin,joe,jorendorff,josh,khuey,mfinkle,neil,Pike,roc,shaver,smontagu,taras
2011-02-20 06:10:24 +11:00
Mike Hommey
98135bdfff
Bug 593767 - Don't use SA_SIGINFO when unsupported. r=bsmedberg,a=bsmedberg
2010-11-07 09:20:50 +01:00
Rob Arnold
13ef0df01c
Bug 563462 - Remove Photon bits from toolkit/ r=Mossop
2010-05-12 14:31:24 -04:00
Mark Banner
c1f7eefbf4
Bug 550145 NS_APPSTARTUP_CONTRACTID should exist in nsToolkitCompsCID.h and not nsXPFEComponentsCID.h (kill nsXPFEComponentsCID.h). r=benjamin
2010-03-05 12:11:55 +00:00
Walter Meinl
3f2289c67b
Bug 536343: Fix build bustage on OS/2 in nsSigHandles.cpp r=bsmedberg,dragtext
2010-01-30 07:48:32 -05:00
Chris Jones
6836e30944
Bug 540116: By default, unblock the parent process if a child crashes in a DEBUG build that uses ah_crap_handler(). Set MOZ_DONT_UNBLOCK_PARENT_ON_CHILD_CRASH=1 to restore old behavior. r=bsmedberg
2010-01-27 22:23:16 -06:00
Mook
d3e1980b10
Bug 538056 - Signal handler for FPU exception is broken for Windows x64, r=m_kato,bsmedberg
...
toolkit/xre/nsSigHandlers.h:
define x86 constants also for msvc x86-64
toolkit/xre/nsSigHandlers.cpp:
Take into account different structure names for win64
2009-12-29 01:48:02 -08:00
Ginn Chen
fdecb5cb37
Bug 538339 In fpehandler() mask cw and back to the faulting x87 instruction on Solaris r=gal,bsmedberg
2010-01-13 17:04:52 +08:00
Ginn Chen
2ebc336d1a
Bug 538338 Do not hang on FPE_INTDIV "Integer divide by zero" r=bsmedberg
2010-01-13 17:04:04 +08:00
Benjamin Smedberg
1d562d3192
Bug 538642 - Breakpad shouldn't treat FPU exceptions as crashes, and the FPU exception handler should chain correctly, r=ted
2010-01-11 13:16:20 -05:00