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

13341 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 93c21200a2 Bug 1110956 follow-up: Fix a build bustage on non-unified builds 2014-12-12 22:11:23 -05:00
Ehsan Akhgari 296797216d Bug 1110956 follow-up: Use EXPECT macros instead of ASSERT 2014-12-12 21:52:22 -05:00
Ehsan Akhgari d9a12be136 Bug 1110956 - Port TestStrings.cpp to gtest and enable it; r=froydnj
--HG--
rename : xpcom/tests/TestStrings.cpp => xpcom/glue/tests/gtest/TestStrings.cpp
extra : rebase_source : 07362a75215f15211a6ef9989a555dff5a7b5a23
2014-12-12 19:05:10 -05:00
Ehsan Akhgari 67cc0b04d5 Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches.  This patch rewrites
that function to make it O(n+m).

Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.

--HG--
extra : rebase_source : b020e17c1973330b0dbbd6bf956c073cfdcb775e
2014-12-12 18:57:09 -05:00
Wes Kocher e39cbf38e2 Backed out changeset 95377313608b (bug 1101337) for linux debug build bustage 2014-12-12 16:34:43 -08:00
Wes Kocher 68470b7b1a Backed out changeset d468b88bdb23 (bug 1110956)
--HG--
rename : xpcom/glue/tests/gtest/TestStrings.cpp => xpcom/tests/TestStrings.cpp
2014-12-12 16:34:21 -08:00
Wes Kocher ff40bed765 Backed out changeset 71378a872c99 (bug 1110956) 2014-12-12 16:33:57 -08:00
Ehsan Akhgari af9b0a2f88 Bug 1110956 follow-up: Actually re-enable the test that was commented out 2014-12-12 19:10:48 -05:00
Ehsan Akhgari 7e9c1a21d4 Bug 1110956 - Port TestStrings.cpp to gtest and enable it; r=froydnj
--HG--
rename : xpcom/tests/TestStrings.cpp => xpcom/glue/tests/gtest/TestStrings.cpp
2014-12-12 19:05:10 -05:00
Ehsan Akhgari 8bcf46c622 Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches.  This patch rewrites
that function to make it O(n+m).

Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.
2014-12-12 18:57:09 -05:00
Ben Kelly 0ae0cffad0 Bug 1098004 Follow-up to fix non-unified bustage. r=me 2014-12-12 16:57:23 -05:00
Andrew McCreight 0779204bd5 Bug 1097850 - ChildFinder::NoteNativeChild() should call CanSkip(). r=smaug 2014-12-12 13:42:21 -08:00
Andrew McCreight a6fce3e639 Bug 1110243 - CCGraphBuilder::NoteNativeChild should call CanSkipThis(). r=smaug 2014-12-12 13:42:21 -08:00
Shih-Chiang Chien 7bdce1f5fc Bug 1102439 - Clean up child-side PBackground before thread shutdown. r=khuey
--HG--
extra : transplant_source : %29r%7D%0CP%9F%D6%20%8B%A9%EA%EE%7D%AC%BB%80%1AB%D86
2014-11-20 14:16:36 -08:00
Ben Kelly 4ac2f623b5 Bug 1098004 Implement snappy compression framing protocol as nsI(Input|Output)Streams. r=froydnj 2014-12-12 14:12:27 -05:00
Ehsan Akhgari eb2d17cdf6 Backed out 2 changesets (bug 1101337) because of ASAN bustage landed on a CLOSED TREE
Backed out changeset ffef93ec94aa (bug 1101337)
Backed out changeset 2954a37bc2df (bug 1101337)
2014-12-12 13:04:44 -05:00
Ehsan Akhgari 169d700dd5 Bug 1101337 follow-up: Move the Segment class to nsTString_CharT in order to satisfy older gcc's used on b2g, landed on a CLOSED TREE to fix build bustage 2014-12-12 12:43:04 -05:00
Ehsan Akhgari 2b3c79836e Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches.  This patch rewrites
that function to make it O(n+m).

Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.

--HG--
extra : rebase_source : 0330c130520802392b92bd094dde85f57cfe6420
2014-12-12 11:47:55 -05:00
Jason Orendorff 92f1bf16c5 Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
--HG--
extra : rebase_source : a44070dd6155426ef6026c1575116f90b5fdac0c
extra : amend_source : 8d8fcf05dfd5fdf214a39501663347a6d6b56463
2014-11-22 12:23:39 -06:00
Nicholas Nethercote 5e166635cb Bug 1094552 (part 6) - DMD: add support for cumulative heap profiling. r=mccr8.
By adding a new "cumulative" mode.

--HG--
extra : rebase_source : 5c851b7c594a134fae48393ff0becfd057715041
2014-10-30 20:22:47 -07:00
Nicholas Nethercote 7a1087c6c6 Bug 1094552 (part 4) - Rename AnalyzeReports() as Analyze(). r=mccr8.
Because DMD is no longer just about measuring memory reports coverage, but is
also used for more general heap profiling.

--HG--
extra : rebase_source : 82b4579de240037f96cf6618b15870925adc431b
2014-12-08 14:45:13 -08:00
Jason Orendorff acdfa74202 Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
--HG--
extra : rebase_source : a349ef612573aff8f87b995a65df94ae56cab13d
extra : amend_source : bbfe549fe0735d8b33ffff66d7eeddcc2ad042d2
2014-12-02 16:56:35 -06:00
Terrence Cole c74065a925 Bug 1105069 - Part 12: Convert VisitGrayWrapperTargets to GCCellPtr; r=jonco, r=mccr8
--HG--
extra : rebase_source : e74a8a70f5110cb64787fa3ef9669819f0d24c85
2014-12-05 09:38:33 -08:00
Terrence Cole 81bda611c6 Bug 1105069 - Part 11: Convert UnmarkGrayGCThingRecursively to GCCellPtr; r=jonco, r=mccr8
--HG--
extra : rebase_source : da3b54ac1300838bbe66dbd74af89ff56302ba23
2014-12-05 09:38:33 -08:00
Terrence Cole b3fb25bc3f Bug 1105069 - Part 10: Convert NoteWeakMapping to GCCellPtr; r=jonco, r=mccr8
--HG--
extra : rebase_source : b660a676c03c4a0bbdc521a6401a2a619543aa2a
2014-12-05 09:38:32 -08:00
Terrence Cole ac87e752c8 Bug 1105069 - Part 9: Strongly type NoteWeakMapChildrenTracer; r=mccr8
--HG--
extra : rebase_source : d9022b88da99b7c8df01cc222cd98f83ed795ecb
2014-12-05 09:38:32 -08:00
Terrence Cole d0e0d193b8 Bug 1107349 - Always build in enerational GC support; r=jonco 2014-12-04 09:45:05 -08:00
Mason Chang 9fae9e4367 Bug 1108613. Create an XRE_IsParentProcess to detect if code is running in the parent process. r=roc 2014-12-09 11:21:47 -08:00
Nicholas Nethercote 2e23aeecb5 Bug 1102525 (part 3) - Replace SegmentedArray with mozilla::SegmentedVector in the cycle collector. r=smaug.
--HG--
extra : rebase_source : fb8b9f52958d6823dc011892b06bf42989a60a75
2014-12-08 14:45:13 -08:00
Chris Peterson e424225899 Bug 1107814 - Part 2: Mark some directories as FAIL_ON_WARNINGS conditionally for some compilers. r=gps 2014-12-04 01:11:14 -08:00
Chris Peterson 22d0c4b343 Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps 2014-12-04 16:24:03 -08:00
Wes Kocher 126b4f108e Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk 0f94bddfc8 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Terrence Cole 1bb5471d19 Bug 1105069 - Part 8: Remove implicit cast from GCCellPtr to js::gc::Cell*; r=jonco, r=mccr8
--HG--
extra : rebase_source : 0dfb2314f5d20770b7b92fa9fde23cb6c41f20d8
2014-12-01 22:34:25 -08:00
Terrence Cole 6eb606db7f Bug 1105069 - Part 7: Convert WeakMapTracer to use GCCellPtr; r=jonco, r=mccr8
--HG--
extra : rebase_source : d61c5f00a86472581bedd833fd4fbaf1f6700a0a
2014-12-01 15:06:38 -08:00
Terrence Cole 98a5f959aa Bug 1105069 - Part 1: Move GCTraceKind from jspubtd to TraceAPI; r=jonco, r=mccr8
--HG--
extra : rebase_source : 86fef608628fe2eaa6c6f91e84d90aa9e9baa84d
2014-12-01 14:49:07 -08:00
Zhenbo Li 4ada9ac75e Bug 1106050 - Fix variable ‘fifoCallbacksRegistered’ set but not used warning. r=njn 2014-12-04 21:30:22 +08:00
Daniel Holbert c923bd8716 Bug 1108024: Add MOZ_OVERRIDE annotations to function-decls in NS_DECL_ISUPPORTS & its variants. r=froydnj 2014-12-05 12:49:05 -08:00
Olli Pettay 22391a5617 Bug 1107775 - Make deferred finalization more re-entrant safe, r=mccr8 2014-12-05 08:53:00 -08:00
Landry Breuil ffad9bf49f Bug 1106551: Include sys/mount.h only in the linux quota case r=froydnj
Fixes build on OpenBSD where you cant include sys/mount.h alone, you
also need sys/param.h
2014-12-05 15:46:53 +01:00
Carsten "Tomcat" Book 3911d91fb0 Backed out changeset 81bec89d093b (bug 1107775) for Valgrind and other test failures 2014-12-05 08:19:28 +01:00
Olli Pettay faaced26b2 Bug 1107775 - Make deferred finalization more re-entrant safe, r=mccr8
--HG--
extra : rebase_source : 74e300e96b50b470dbc89cdbbcfb9dbc7b75e629
2014-12-04 21:59:30 -08:00
Mats Palmgren 93a86d1a91 Bug 1101625 part 1 - Don't escape all non-ASCII characters when unsafe characters are found, just escape the unsafe characters. r=smontagu 2014-12-01 15:55:15 +00:00
ffxbld 86328535e5 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2014-11-28 10:54:49 -05:00
Ben Hearsum c970d90a47 Backout bad version bumps IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2014-11-28 10:51:29 -05:00
ffxbld 615c870714 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2014-11-28 10:39:09 -05:00
ffxbld 0510d3cd79 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2014-11-28 10:33:05 -05:00
Olli Pettay bed81b1fde Bug 1105089, try to have shorter ICC slices during animations, r=mccr8
--HG--
extra : rebase_source : bfe8cc2825b7cb2ec86f6e8f5ba590593e1c378b
2014-11-27 13:47:51 +02:00
L. David Baron a77b51ac2a Bug 1100770 - Better document existing printf_stderr, vprintf_stderr, fprintf_stderr functions. r=froydnj 2014-11-26 22:29:44 -08:00
Patrick Wang (Chih-Kai Wang) d40cbb7a3d Bug 1105215: fix build break when MOZ_CALLSTACK_DISABLED is not defined. r=njn 2014-11-27 13:52:56 +08:00
Trevor Saunders 1a013270b5 bug 1105074 - make more stuff final r=froydnj 2014-11-25 13:56:07 -05:00
James Willcox 90ad2ed955 Bug 1085742 - Bail out of XPCOM init early if we're already initialized r=bsmedberg
--HG--
extra : rebase_source : 6029756f6c910d1d201f067379ad2c2838b73b8d
2014-11-26 15:19:57 -06:00
Gregory Szorc a98df2b053 Backout 69f755d4f257 (bug 1103825) for test failures
xpcom/tests/unit/test_nsIProcess.js and
xpcom/tests/unit/test_nsIProcess_stress.js were failing with this commit
applied. Backout out.

CLOSED TREE

--HG--
extra : amend_source : 79cda414c263d97e77309da6ec6d58718b91d199
2014-11-25 19:18:08 -08:00
David Major ff75043656 Bug 1103830: Support 0x40 prefix byte (plain REX). r=m_kato
--HG--
extra : rebase_source : affded50f428e9295b2eda4b311ebd0c2677a138
2014-11-26 15:41:21 +13:00
Gregory Szorc cff551e7b7 Bug 1103825 - Use misc tier in xpcom/tests; r=mshal
--HG--
extra : rebase_source : 248423ffcf75acd406510dd350ccf4653a3c34b4
extra : histedit_source : 416af91a62eff97ca53596423d4124bf013293b4
2014-11-23 16:36:58 -08:00
Jim Chen f6e8fa1fed Bug 1091758 - Report full paths for most chrome scripts; r=snorp 2014-11-25 15:35:21 -08:00
Wes Kocher dcd7b41c02 Merge m-c to inbound a=merge 2014-11-24 17:09:11 -08:00
Wes Kocher bd182684f1 Backed out changeset b3f742c00ba1 (bug 1103152) 2014-11-24 17:04:30 -08:00
Wes Kocher 9bd1792b15 Backed out changeset b4b619628d1d (bug 1103368) for b2g build bustage 2014-11-24 17:03:44 -08:00
Wes Kocher 1d5fb56d35 Merge inbound to m-c a=merge 2014-11-24 16:55:25 -08:00
Ryan VanderMeulen fb8d05cd59 Backed out changesets 9beb53e53951, 4420bb4e5e7c, de1da65301a8, and cd9c2aaf1343 (bug 970307) for causing frequent B2G debug mochitest-11 crashes. 2014-11-24 17:18:27 -05:00
Carsten "Tomcat" Book 2492fdb8a7 Merge mozilla-central to b2g-inbound 2014-11-24 14:18:59 +01:00
Patrick Wang (Chih-Kai Wang) 19f6d563c5 Bug 970307: fix non-unified build bustage. r=me 2014-11-24 16:36:35 +08:00
Patrick Wang (Chih-Kai Wang) c0da861aa4 Bug 970307: Part 1: Report status of each thread to find when all the threads are idle. r=nfroyd 2014-11-24 15:21:52 +08:00
Jason Orendorff 986d9b9587 Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
--HG--
extra : rebase_source : 4fffe30636fdc5f0c708bc50f98c974c67cd4459
2014-11-22 12:23:39 -06:00
Jason Orendorff 195aa9ff10 Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
--HG--
extra : rebase_source : 40b75b926ae59d91c80374fc5b25d2a459ecb717
2014-11-21 15:14:58 -06:00
Shelly Lin 2be44806ed Bug 1100259 - Add TaskTracer labels in EventDispatcher and console.log of message with special prefix. r=sinker. 2014-11-20 10:57:27 +08:00
Nicholas Nethercote 5fad01bb19 Bug 1094552 (part 3) - DMD: rename |Block| as |LiveBlock|. r=mccr8.
This is to give better contrast with |DeadBlock|, which will be added in the
next patch.

--HG--
extra : rebase_source : cbc767fcc5667cfed108ca7c4ebf1d7e82aa185e
2014-11-18 18:57:20 -08:00
Paul Szabo bb28658a19 Bug 918140 - mis-interprets disk "hard quota" (blocks vs bytes confusion). r=benjamin 2014-11-23 22:20:38 +02:00
Jacek Caban 416d586a14 Bug 1102809 - Fixed -Wunused-function warnings found in mingw build. r=mattwoodrow 2014-11-24 11:19:36 +01:00
Jed Davis 2fdd7150c1 Bug 1101170 - Move sandbox status info into a separate module. r=kang r=glandium
This changes the interface so that the code which determines the flags
can live in one place, but checking the flags doesn't need to call into
another library.

Also removes the no-op wrappers for Set*Sandbox when disabled at build
time; nothing used them, one of them was unusable due to having the wrong
type, and all they really accomplish is allowing sloppiness with ifdefs
(which could hide actual mistakes).
2014-11-24 15:22:13 -08:00
Karl Tomlinson 312be48f81 bug 976927 support nsAutoTArray::operator=(const nsTArray&) r=froydnj
--HG--
extra : rebase_source : 9835cd5b05427611d5e490eee88602b2578dc0b8
2014-11-19 12:40:28 +13:00
Julian Seward 89afba7ee7 Bug 1100911 - For MacOS builds running on Valgrind, make ThreadStackHelper::GetStack be a no-op. r=nchen.
--HG--
extra : rebase_source : b78df813b0fb211043836f4b8692caf277a2b28f
2014-11-20 20:50:26 +01:00
Jacek Caban a6c311c29d Bug 1100997 - Fixed FileUtilsWin.h compilation on mingw. r=cpearce 2014-11-20 10:52:26 +01:00
Carsten "Tomcat" Book b742ef4f34 Backed out changeset 73c4111cab17 (bug 1083361) for bustage 2014-11-20 09:51:03 +01:00
David Rajchenbach-Teller b71d04be6e Bug 1083361 - Exposing a PromiseDebugging API to monitor uncaught DOM Promise. r=bz 2014-11-19 14:31:06 +01:00
Nathan Froyd 970fc0e8a3 Bug 1099251 - make ChaosMode's behavior modifications more finely-grained selectable; r=roc 2014-11-14 13:12:51 -05:00
Tom Tromey 312667013f Bug 1097731 - emit using declarations for infallible convenience methods. r=nfroyd 2014-11-12 08:11:00 +01:00
Mason Chang de0e409177 bug 552020 Part 3: Enable Creation of mozilla::TimeStamp from system timestamps. r=roc 2014-11-18 13:28:42 -08:00
Francois Marier 162f0e0a1c Bug 529697 - (CSP 1.1) Implement form-action directive [2/4], r=smaug
Check CSP when submitting HTML forms.
2014-11-18 01:13:00 +01:00
Mike Hommey 6820af77b4 Bug 1087245 part 3 - Avoid memory allocation when initializating Poison IO File Handle list so that LogAlloc doesn't deadlock at initialization. r=nfroyd 2014-11-18 19:21:26 +09:00
Mike Hommey 3cbc3cf69f Bug 1087245 part 1 - Allow replace-malloc libraries to register debug file handles to poison IO interposer. r=nfroyd 2014-11-18 19:21:06 +09:00
Mike Hommey 7def0f9cd3 Bug 1097507 - Make libxul independent of libdmd when DMD is enabled. r=njn
This also effectively changes how DMD is enabled from requiring both
replace-malloc initialization and the DMD environment variable to
requiring only the former. The DMD environment variable can still be
used to specify options, but not to disable entirely.

This however doesn't touch all the parts that do enable DMD by setting
the DMD environment variable to 1, so the code to handle this value
is kept.
2014-11-18 19:21:06 +09:00
Shih-Chiang Chien d88351efcf Bug 1094531 - make nsNodeInfoManager skippable. r=smaug. 2014-11-17 13:04:00 +01:00
Brian Birtles 862f1e6d3b Bug 1073336 part 3a - Allow TimeStamp == and != operators to work with null timestamps; r=froydnj 2014-11-17 13:45:56 +09:00
Ryan VanderMeulen 87e1d173f4 Backed out changesets a99bd0b3b075, a7fb851f823a, and 9fc2d99376cd (bug 552020) for non-unified bustage and OSX 10.6 tsvgr crashes.
CLOSED TREE
2014-11-14 15:57:35 -05:00
Mason Chang 89dd1bd2d2 Bug 552020. Part 3: Enable creation of mozilla::TimeStamp from system Timestamps. r=roc 2014-11-14 08:31:04 -08:00
Chris Pearce f3af16c459 Bug 1088488 - Add GMPLoader interface to encapsulate loading GMPs, pass that to XRE_InitChildProcess. r=jesup,r=bsmedberg,r=glandium 2014-11-14 21:26:24 +13:00
Nathan Froyd e0f61bdabc Bug 1095541 - part 3 - remove nsCOMPtr.h #include from nsRefPtr.h; r=bsmedberg 2014-11-07 11:18:19 -05:00
Nathan Froyd 7873eb0325 Bug 1095541 - part 2 - move already_AddRefed to its own header file; r=bsmedberg 2014-11-07 11:17:41 -05:00
Nathan Froyd e9b66eb44d Bug 1095541 - part 1 - move nsRefPtr nsCOMPtr_helper overloads out-of-line; r=bsmedberg
Doing this means that instantiations of nsRefPtr<T> won't require
nsCOMPtr_helper::operator() to be defined.  Only actual uses of the
overloads will require the definition.
2014-11-07 11:16:54 -05:00
Nathan Froyd e07aa30b4b Bug 1097861 - make CycleCollectionNoteChild more easily forward-declarable; r=mccr8
Forward declaring functions with default arguments is difficult.  If you try to say:

template<typename T>
inline void
CycleCollectionNoteChild(nsCycleCollectionTraversalCallback& aCallback,
                         T* aChild, const char* aName, uint32_t aFlags);

and then later have:

template<typename T>
inline void
CycleCollectionNoteChild(nsCycleCollectionTraversalCallback& aCallback,
                         T* aChild, const char* aName, uint32_t aFlags = 0);
{
  ...
}

the compiler complains that default arguments cannot be added to a
function template that has already been declared.  If you attempt to
mollify the compiler by declaring instead:

template<typename T>
inline void
CycleCollectionNoteChild(nsCycleCollectionTraversalCallback& aCallback,
                         T* aChild, const char* aName, uint32_t aFlags = 0);

the compiler then complains about redefining the default argument (!)
when an actual definition is found.

To circumvent this, manually implement "default" arguments by providing
a three-argument form of CycleCollectionNoteChild, which simply forwards
to the four-argument version.
2014-11-12 15:22:32 -05:00
Mike Hommey 486629b635 Bug 1097506 - Pass a JSONWriteFunc to dmd::AnalyzeReports instead of a JSONWriter. r=njn
The interesting feature JSONWriteFunc has, contrary to JSONWriter, is that it
only has virtual methods, which makes it a better candidate to be passed
around between libraries not linked against each other.

This will allow to make dmd and libxul independent from each other.
2014-11-13 09:24:28 +09:00
Aaron Klotz 91000480d2 Bug 1090389: Ensure that IOInterposer normalizes to long file names on Windows; r=froydnj 2014-11-12 14:01:45 -07:00
David Major e8c22c1b15 No bug - add a comment to clarify the code. DONTBUILD
--HG--
extra : rebase_source : 3d38a9aa2fde585951ffaadaecf76422cf0dcab5
2014-11-13 08:57:09 +13:00
David Major 5b3f9cf5f2 Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
--HG--
extra : rebase_source : a9f4ae9e6f05e5ade56b741fa2f110974c5f08ac
2014-11-12 21:13:44 +13:00
David Major eb013f5d4d Backed out changeset 8a4595cc5ec4 for Linux build failure on a CLOESD TREE
just kidding it's a CLOSED TREE

--HG--
extra : rebase_source : 163a9bff0ad836095057d5911b792c34517d14cc
2014-11-12 17:19:15 +13:00
David Major 71f98009f0 Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
--HG--
extra : rebase_source : b24e0b9d2e491ace3c045ee6b01e36b33c3ac21d
2014-11-12 15:42:53 +13:00
Nicholas Nethercote 6b3fdce6bc Bug 1096624 - Use a SegmentedArray in nsCycleCollector::CollectWhite. r=smaug.
This patch does the following.

- Moves the logic for computing the ideal capacity for a SegmentedArray out of
  SnowWhiteKiller into its own class, SegmentedArrayCapacity.

- Replaces the nsTArray in CollectWhite(), which can be very large and is
  complicit in ~1% of OOM crashes, with a SegmentedArray.

--HG--
extra : rebase_source : 732743311a08fcc3dfe43a1b308846b93d30e6ed
2014-11-11 16:02:34 -08:00
Nathan Froyd 03dbe73deb Bug 1097271 - remove unused ptr variable from nsClassHashtable::RemoveAndForget; r=mccr8 2014-11-11 16:47:29 -05:00