Commit Graph

6947 Commits

Author SHA1 Message Date
Ms2ger
e15d1da9ab Bug 1250917 - Remove NS_SUCCESS_I_DID_SOMETHING; r=bholley
It hasn't been used for a while now.
2016-02-25 09:28:06 +01:00
Nicholas Nethercote
382142e468 Bug 1248534 (part 9) - Remove XPT arena logging code. r=khuey.
It's not useful.
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
78c3e94370 Bug 1248534 (part 8) - Remove useless XPT freeing code. r=khuey.
XPT has some functions and macros for freeing memory. However, they (a) are
only used on error paths, and (b) don't actually free memory -- they just
optionally log the "freeing" -- because piecewise freeing doesn't make sense
with arena allocation.

This patch removes all that unnecessary machinery.
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
b28eae0483 Bug 1249174 (part 7) - Only define XPTArena::name if XPT_ARENA_LOGGING is defined. r=khuey. 2016-02-23 05:33:35 +11:00
Nicholas Nethercote
7cd527a48b Bug 1248534 (part 6) - Stack-allocate XPTState. r=khuey.
RegisterBuffer() is the only place that creates an XPTState, and it also
destroys it. So the XPTState can be allocated on the stack, which voids the
need for the creation of an XPTArena.
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
4a3a7d6c8f Bug 1248534 (part 5) - Remove XPTDatapool. r=khuey.
It can just be inlined into XPTState, which simplifies things.
2016-02-23 05:33:35 +11:00
Nicholas Nethercote
2324b7b000 Bug 1248534 (part 4) - Remove unused fields from XPTConstValue. r=khuey. 2016-02-23 05:28:13 +11:00
Nicholas Nethercote
5e2300162c Bug 1248534 (part 3) - Remove almost all support for XPT annotations. r=khuey.
XPT supports annotations but xpt.py doesn't generate them except for a single
empty annotation (to indicate there are no real annotations). So we can remove
almost all support for them. This also allows XPTString to be removed.
2016-02-22 09:52:39 +11:00
Nicholas Nethercote
6d4c49b38f Bug 1248534 (part 2) - Remove unused XPT flags. r=khuey. 2016-02-16 19:04:18 +11:00
Nicholas Nethercote
9352570917 Bug 1248534 (part 1) - Remove XPT encoding support. r=khuey.
Currently XPT can both encode and decode, but encoding has been handled by
Python code since bug 643817, so the encoding support can be removed. This
results in many simplifications. Some notable changes:

- All the XPTHashTable code (including XPTDatapool::offset_map) is no longer
  necessary.

- PrimitiveTest.cpp and SimpleTypeLib.cpp both don't make much sense without
  encoding support, so I removed them.

- A lot of the version code was already unused, e.g. XPT_VERSION_*,
  XPT_TYPELIB_VERSIONS_STRUCT, XPT_TYPELIB_VERSIONS.
  XPT_MAJOR_INCOMPATIBLE_VERSION is the only thing actually used in version
  checks.

- The patch also removes some code that was dead even before encoding removal,
  such as XPT_ParseVersionString().
2016-02-16 19:02:51 +11:00
Nicholas Nethercote
2f88a9a04e Bug 1250396 (part 2) - Remove nsStaticAtomStringType. r=froydnj.
It's only used in one file and obscures more than it enlightens.
2016-02-23 16:55:59 +11:00
Nicholas Nethercote
85d2dc6c54 Bug 1250396 (part 1) - Document a subtle contraint on nsIAtom. r=froydnj. 2016-02-17 11:30:02 +11:00
L. David Baron
d5e0278a54 Back out changeset b5ec7338bddf (bug 1236789) on a CLOSED TREE for causing assertions on most (but not all) debug test runs. 2016-02-24 15:45:40 -08:00
Robert O'Callahan
b83baff009 Bug 1236789. Avoid creating an unnecessary thread pool thread for tail-dispatch in TaskQueue. r=bholley
MozReview-Commit-ID: H1rhQPBU00L
2016-01-05 16:35:17 +13:00
Nicholas Nethercote
687a6f5be1 Bug 1249503 - Make WindowsAddressSpaceReporter bloat memory reports less. r=erahm.
The WindowsAddressSpaceReporter generates one memory report per segment, and
there can be 10,000+ segments.

This patch changes things so that one memory report is generated per segment
*kind* -- at most a couple of dozen -- rather than one per *segment*.
2016-02-23 18:39:24 +11:00
Bogdan Postelnicu
50bbc8e987 Bug 1021151 - avoid memory leak in NS_GENERIC_AGGREGATED_CONSTRUCTOR_INIT, use nsAutoPtr instead of naked ptr. r=Ehsan
MozReview-Commit-ID: 6iU7ikbgjEn
2016-02-23 14:12:22 +02:00
Bogdan Postelnicu
38bbebfbc9 Bug 1250134 - assert mJSRuntime when IsGrayJS() is true. r=mccr8
MozReview-Commit-ID: B5046aj61jx
2016-02-23 09:28:52 +02:00
Andrew McCreight
fed281470b Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
Andrew McCreight
85860289d9 Bug 1247679, part 2 - Null check inside TraceCallbackFunc::Trace. r=smaug 2016-02-22 10:11:02 -08:00
Andrew McCreight
bf98012594 Bug 1247679, part 1 - Make ClearJSHolder publicly inherit from TraceCallbacks. r=smaug 2016-02-22 10:11:02 -08:00
Jeff Lu
226d0081c1 Bug 864842 - Show error for browsing Windows drive without media, r=michal 2016-02-22 17:00:10 +01:00
Olli Pettay
70a1a77847 Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8 2016-02-19 20:17:25 +02:00
Carsten "Tomcat" Book
ddeb6f191e Backed out changeset dc704cb50a24 (bug 1249451) for bustage 2016-02-19 14:18:37 +01:00
Olli Pettay
b1dc3defac Bug 1249451 - nsCycleCollector::ScanRoots may cause some unexpected purple buffer usage, r=mccr8 2016-02-19 13:09:20 +02:00
Nicholas Nethercote
2559682882 Bug 1249171 - Simplify nsCOMArray::SizeOfExcludingThis(). r=erahm.
Using explicit iteration at measurement sites is much simpler and nicer than
using callbacks.
2016-02-19 14:54:45 +11:00
Brian Birtles
bc7586045e Bug 1249212 part 2 - Fix infinity handling in StickyTimeDurationValueCalculator::Multiply; r=froydnj
This patch brings the behavior of this method into line with the comment that
describes it and other methods in this class that have a similar test.

I discovered this bug while exercising this code from animation code and was
getting test failures due to returning -Infinity instead of the expected
Infinity.
2016-02-19 08:37:31 +09:00
Andrew McCreight
4098d0b694 Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug 2016-02-18 15:21:48 -08:00
Honza Bambas
f170a6058c Bug 961430 - Allow pid be added to the log file name automatically. r=froydnj 2016-02-18 07:56:00 -05:00
Nicholas Nethercote
edae2b07e6 Bug 1247850 - Shrink NameTableKey in nsStaticCaseInsensitiveNameTable. r=froydnj,erahm.
This patch removes NameTableEntry::mString. This requires adding mNameArray to
NameTableKey so that we can index off it in matchNameKeysCaseInsensitive().

This change saves 41.5 KiB per process.
2016-02-12 16:55:51 +11:00
Ben Kelly
1eb56118ec Bug 1247580 P1 Allow old nsIX509Cert serialized objects to be read off disk. r=bz 2016-02-17 07:18:00 -08:00
Julian Seward
43d19bc9e0 Bug 1136762 - TSan: data race xpcom/io/nsPipe3.cpp:1061 CloseWithStatus. r=nfroyd. 2016-02-17 11:22:28 +01:00
Mike Shal
2a588c2eb9 Bug 1241976 - port INSTALL_TARGETS in xpcom/tests to moz.build; r=glandium 2016-01-21 21:06:50 -05:00
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Andrea Marchesini
b532e955dc Bug 1247122 - Propagate the NS_ERROR_OUT_OF_MEMORY from CycleCollectedJSRuntime CTOR, r=khuey 2016-02-14 13:30:25 +00:00
Carsten "Tomcat" Book
ab1e5f44dc merge mozilla-inbound to mozilla-central a=merge 2016-02-12 15:15:17 +01:00
Ryan VanderMeulen
08b59f8d68 Backed out changeset e135879cff29 (bug 1218473) to fix various Windows startup issues being experienced by some users. a=sledru 2016-02-11 13:35:48 -05:00
Carsten "Tomcat" Book
302ee59a1d Backed out changeset 6e4e5e584c32 (bug 1240848) for causing bug 1241921 to reappear 2016-02-11 15:12:51 +01:00
Terrence Cole
8c6ca45192 Bug 1247381 - Restore a CC optimization dropped in bug 1105069 part 7; r=mccr8 2016-02-10 12:46:52 -08:00
Andrew McCreight
4a59ef0c8e Bug 1245673 - Remove useless NS_INT32_TO_PTR from DumpSerialNumbers. r=froydnj 2016-02-10 10:29:20 -08:00
Andrew McCreight
b378fa30bb Bug 1243949 - Fatally assert when we fail to create an XPCOM log. r=froydnj 2016-02-10 10:29:20 -08:00
Karl Tomlinson
2c7fcb4d59 bug 1245745 include libpulse version in update URL r=glandium 2016-02-09 14:35:03 +13:00
Boris Zbarsky
e39cfcc7d9 Bug 1243001 part 8. Tell SpiderMonkey to put its promise jobs into the CycleCollectedJSRuntime job queue. r=peterv
This will run the SpiderMonkey promise jobs more or less the same way that we
run Promise jobs right now, including using a Web IDL callback for the actual
invocation.
2016-02-09 17:40:31 -05:00
Aaron Klotz
2b397040ac Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan 2016-02-03 16:21:17 -07:00
Ted Mielczarek
17dc55c851 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux
2016-01-27 09:39:53 -05:00
Nathan Froyd
7e3aa317f4 Bug 1247359 - micro-optimize the common case of String{Begins,End}With; r=erahm
StringBeginsWith (resp. StringEndsWith) takes a defaulted
nsStringComparator object for doing comparisons.  The flexibility this
affords is great, but the cost is not: nsStringComparator has virtual
methods, so initializing that defaulted object (at every callsite)
requires a temporary object whose vtable must be initialized.

Since the overwhemingly common case is to use the default comparator
anyway, we should not use defaulted arguments and instead provide the
default comparator/user-provided comparator cases as separate overloads.
This change eliminates the virtual call for the majority of callsites
and reduces codesize as well.
2016-02-10 14:31:06 -05:00
Aidin Gharibnavaz
e084f12c9a Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book
ab60132384 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures 2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
238dcd01fc Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-07 10:56:00 +01:00
Ehsan Akhgari
056fc9484c Remove the workaround added in bug 1022420 now that clang-cl understands __declspec(novtable) 2016-02-06 16:57:58 -05:00
Valentin Gosu
43aaf2a18d Bug 241788 - mozilla::Tokenizer - token type for \n should whitespace if given in constructor r=honzab 2016-02-05 14:43:45 +01:00