Yuan Xulei
858942196b
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Ehsan Akhgari
7e1e6e5ff9
Bug 982072 - Don't leak the argument passed to RegisterStrongMemoryReporter if we fail to get the service; r=froydnj
2014-03-11 14:15:27 -04:00
Ryan VanderMeulen
5099e8a290
Backed out 5 changesets (bug 910412) for intermittent crash whack-a-mole.
...
Backed out changeset e3eb9463b3e1 (bug 910412)
Backed out changeset d5863d302bde (bug 910412)
Backed out changeset 422b66d4b1ca (bug 910412)
Backed out changeset 3431d59d752e (bug 910412)
Backed out changeset b1c0310cdac1 (bug 910412)
2014-03-11 12:17:03 -04:00
Andrew McCreight
d1cecbd6d3
Bug 981033 - Clear mActivelyCollecting before restarting CC. r=smaug
2014-03-11 07:34:35 -07:00
Yuan Xulei
260442ce9a
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Jed Davis
6a4c4691a0
Bug 946407 - Reimplement DumpMemoryInfoToTempDir in terms of GetReports. r=njn
...
This winds up exposing things in the nsIMemoryReporterManager interface
that arguably don't belong at that level of abstraction -- "minimize
memory usage first" and DMD -- in order to take advantage of the
infrastructure that GetReports already has for managing the child
processes.
2014-03-04 18:27:13 -08:00
Andrew McCreight
bb417adcd3
Bug 978486 - Remove nsErrorService::mErrorStringBundleKeyMap. r=froydnj
2014-03-04 09:49:40 -08:00
Bobby Holley
a52c7e5aa2
Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence
2014-03-03 08:53:42 -08:00
Jan Beich
90ced12417
Bug 977457 - Move _GNU_SOURCE ifdef a little up to account for cxxabi.h from libcxxrt. r=ehsan
2014-03-03 10:29:08 -05:00
Andrew McCreight
59f6206562
Bug 977688 - Get rid of CC_AbortIfNull. r=smaug
2014-02-28 09:56:23 -08:00
Masatoshi Kimura
90aff37f46
Bug 972761 - Move WindowsVersion.h to MFBT. r=froydnj
...
--HG--
rename : xpcom/base/WindowsVersion.h => mfbt/WindowsVersion.h
2014-02-28 07:58:47 +09:00
Andrew McCreight
537eb6fa81
Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug
2014-02-27 10:04:09 -08:00
L. David Baron
2b5d6b3cfb
Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg
...
Now that bug 975295 removed the obsolete wrapper class, we can rename
nsTraceRefcntImpl back to its correct pre-XPCOM-glue name,
nsTraceRefcnt.
The best part is that the one place where indentation should have needed
fixing, nsTraceRefcnt::DemangleSymbol, never had its indentation fixed
for the previous renaming.
--HG--
rename : xpcom/base/nsTraceRefcntImpl.cpp => xpcom/base/nsTraceRefcnt.cpp
rename : xpcom/base/nsTraceRefcntImpl.h => xpcom/base/nsTraceRefcnt.h
2014-02-26 13:36:36 -08:00
L. David Baron
4f04bcdc57
Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
...
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
Andrew McCreight
328968900f
Bug 975849 - Remove overly strict assertion from CycleCollectedJSRuntime::TraverseRoots to restore previous behavior. r=smaug
2014-02-26 13:18:17 -08:00
Gabriele Svelto
b7270f6ca1
Bug 975434 - Remove the ability to cancel memory minimizations. r=njn
2014-02-25 16:37:30 +01:00
Ehsan Akhgari
e9da09b721
Backed out changeset 8d8165293e9b (bug 976372) because of Windows debug bustage on a CLOSED TREE
2014-02-24 23:01:54 -05:00
Ehsan Akhgari
a196505a83
Backed out changeset f74c9326b89c (bug 976247) because I landed the wrong patch :(
2014-02-24 21:07:37 -05:00
Ehsan Akhgari
5616d30270
Bug 976372 - Remove support for compilers which lack support for dynamic_cast<void*>; r=dbaron
...
--HG--
extra : rebase_source : 83a23e3b8fa4462eb70a1844b555c7605162a497
2014-02-24 21:06:06 -05:00
Ehsan Akhgari
98a137f278
Bug 976247 - Remove a useless static keyword from mozilla::detail::DEAD; r=froydnj
...
--HG--
extra : rebase_source : e73444ec000f1e867651d39cf2aa6beaf88bf4f3
2014-02-24 19:37:34 -05:00
L. David Baron
f6e4eec730
Bug 975295 patch 2: Remove the nsITraceRefcnt interface and any instantiation of the nsTraceRefcntImpl object. r=bsmedberg
2014-02-24 15:27:53 -08:00
L. David Baron
6f9a5e5e60
Bug 939610: Return to printing stack walk addresses in uppercase hexidecimal rather than lowercase, since we have scripts depending on it. r=ted
2014-02-24 15:27:52 -08:00
Terrence Cole
cedc05a6bc
Bug 956081 - Fix the CC's GC-has-been-run detection in the presence of GGC; r=mccr8
...
--HG--
extra : rebase_source : de945b8e2f4972cb8b563f17a95c66cbba86a902
2014-02-20 13:38:32 -08:00
Ehsan Akhgari
f4ddde0564
Bug 935778 - Part 1: Add RefCountType, a type compatible with nsrefcnt, to MFBT; r=dbaron,froydnj
2014-02-21 14:45:50 -05:00
Chris Peterson
62f1c3dc89
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=BenWa r=bsmedberg r=mccr8
2014-02-17 22:10:50 -08:00
Ehsan Akhgari
8212be10db
Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-20 21:33:49 -05:00
Andrew McCreight
abda47e08d
Bug 901597, part 2 - Add environment var to CC log only main or worker threads. r=smaug
2014-02-20 14:27:04 -08:00
Andrew McCreight
3764cf8b93
Bug 901597, part 1 - Move CC logging logic into nsCCParams. r=smaug
2014-02-20 14:27:03 -08:00
Andrew McCreight
1327a45957
Bug 972940 - Rename XPCOM_CC_ env vars to MOZ_CC_. r=smaug,njn
2014-02-20 14:27:03 -08:00
Andrew McCreight
57d072a733
Back out bug 712939 for not getting fully reviewed.
2014-02-20 06:40:56 -08:00
Chris Peterson
065c214bf6
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=mccr8
2014-02-17 23:56:19 -08:00
Andrew McCreight
9ff86c6b97
Backout bug 972940 for valgrind leaks on this CLOSED TREE
2014-02-19 17:20:48 -08:00
Andrew McCreight
1ee530c7ef
Backout bug 901597 for valgrind leaks
2014-02-19 17:19:17 -08:00
Andrew McCreight
607b39da48
Backout bug 901597 for valgrind leaks
2014-02-19 17:18:59 -08:00
Andrew McCreight
957e5efc44
Bug 901597, part 2 - Add environment var to CC log only main or worker threads. r=smaug
2014-02-19 13:27:15 -08:00
Andrew McCreight
907bd71895
Bug 901597, part 1 - Move CC logging logic into nsCCParams. r=smaug
2014-02-19 13:27:14 -08:00
Andrew McCreight
f14269e5fc
Bug 972940 - Rename XPCOM_CC_ env vars to MOZ_CC_. r=smaug
2014-02-19 13:27:14 -08:00
Eric Rahm
ac835c5e28
Bug 972170 - Add zram reporting to about:memory. r=njn
2014-02-19 11:08:38 -08:00
Brian Hackett
cae987d2a2
Bug 964059 - Share atoms compartment/zone between multiple runtimes, r=billm,bent.
2014-02-19 09:02:13 -07:00
Daniel Holbert
84283bddce
back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage.
2014-02-19 00:15:51 -08:00
Chris Peterson
ae4ab82a1d
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=mccr8
2014-02-17 23:56:19 -08:00
Justin Shrake
cbce9ed07f
Bug 972038 - Replace calls to GetMessageMoz with ToString to save callers from having to convert to UTF-8. r=jimm
2014-02-18 09:47:54 -05:00
Ehsan Akhgari
7b16802ce4
Bug 973142 - Get rid of the MOZILLA_INTERNAL_API makefile variable; r=glandium
...
It's just as easy to directly set the preprocessor macro in the moz.build
files. Using this variable doesn't really buy us anything.
This patch also removes unused code from rdf/tests/dsds.
2014-02-18 01:56:51 -05:00
Nicholas Nethercote
e66386ee26
Bug 956199 - Fix style of xpcom/base/nsMemoryReporterManager.{h,cpp}. r=bsmedberg.
...
--HG--
extra : rebase_source : 79a8053c97ecb0786f0a722838f66fc85c5e1368
2014-01-02 19:19:32 -08:00
Masatoshi Kimura
e5fc47840c
Bug 970483 - Fix the logic to determine the pre-RTM Windows 7. r=bbondy
2014-02-12 23:49:06 +09:00
Andrew McCreight
f3bf111fef
Bug 966359 - Prevent FreeSnowWhite reentrance. r=smaug
2014-02-11 14:56:44 -08:00
Masatoshi Kimura
7638c93a95
Bug 970483 - Part 1: Introduce IsWindowsBuildOrLater() and IsWin7RTMOrLater(). r=bbondy
2014-02-12 06:01:29 +09:00
Masatoshi Kimura
9306836991
Backed out changeset d7d447cac91b (bug 969762) for tp5 regression.
2014-02-12 06:01:29 +09:00
Mike Hommey
9ff8bb64aa
Bug 969800 - Fix nsMemoryReporterManager::GetVsize for !HAVE_VSIZE_AND_RESIDENT_REPORTERS and add GNU/kFreeBSD support to nsMemoryReporterManager. r=njn
2014-02-11 10:43:41 +09:00
Jeff Walden
f66c97b3c4
Bug 969165 - Convert Atomic<T> where T != bool but is used as a bool over to Atomic<bool>, now that it's supported, in xpcom/. r=froydnj
...
--HG--
extra : rebase_source : 4b4e47e4246c3764f1b8d50a308b7a717c53a865
2014-02-06 22:05:24 -08:00
Ehsan Akhgari
b870bb3fe9
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
Masatoshi Kimura
84b0ee5c63
Bug 969762 - Support non-ASCII dump() messages on Windows. r=jimm
2014-02-11 05:50:16 +09:00
Neil Rashbrook
c8132dbb0b
Bug 969324 Remove unnecessary ReporterEnumerator r=njn
2014-02-10 19:26:08 +00:00
Thomas Zimmermann
0b22d9d966
Bug 968849: Fix GCC warnings about uninitialized variables, r=froydnj
2014-02-06 17:57:38 +01:00
Nicholas Nethercote
90b8a00e9d
Bug 903131 - Add save GC/CC logs buttons to about:memory. r=njn,mccr8.
...
--HG--
extra : rebase_source : 56af9b89675394b5a219f699b96c1d26c00adc38
2014-01-31 14:43:08 -08:00
Chris Peterson
91f7b1bbc7
Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc
2014-01-29 20:40:34 -08:00
Birunthan Mohanathas
e81a8f702d
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Nathan Froyd
35cde1421e
Bug 964415 - add include guards to nsMemoryReporterManager.h; r=njn
2014-01-27 14:54:37 -05:00
Bobby Holley
1fc0abe0bc
Bug 958324 - Remove same-compartment security wrappers for WNs. r=peterv,r=mrbkap
...
We've fixed Components, and SOWs are new-binding only. Youpie!
2014-01-21 08:26:40 -08:00
Andrea Marchesini
06f3df72fa
Bug 958816 - UUIDs updated to make strings in nsIStackFrame API sane CLOSED TREE
2014-01-20 18:47:35 +01:00
Andrea Marchesini
db2fa96fac
Bug 958816 - Make strings in nsIStackFrame API sane, r=bz
2014-01-20 17:51:41 +01:00
Nathan Froyd
200e32e48e
Bug 960700 - delete incorrect comment from nsStackWalk.cpp; r=ehsan
2014-01-16 14:53:04 -05:00
Ryan VanderMeulen
4e06172283
Backed out changeset 965cf4cbedc8 (bug 958816) for mochitest crashes.
...
CLOSED TREE
2014-01-17 10:20:05 -05:00
Andrea Marchesini
ab79c85864
Bug 958816 - Make strings in nsIStackFrame API sane, r=bz
2014-01-17 15:24:03 +01:00
Nathan Froyd
fdc7c86804
Bug 901022 - write to MOZ_TRACE_FILE when the visual event tracer is stopped; r=honzab
...
DONTBUILD because NPOTB
2013-07-25 12:21:58 -04:00
Olli Pettay
a090c1f030
Bug 958315 - Suspect JS things released by dying C++ objects in the next CC, r=mccr8
2014-01-14 22:23:59 +02:00
Jed Davis
9b8946ab38
Bug 948204 - Add pmem regions to the system memory report. r=njn
2014-01-14 10:03:31 -05:00
Steven Michaud
7e5b4408b4
Bug 956310 - DMD builds fail on Mac OS X. r=bgirard
2014-01-08 17:06:22 -06:00
Marina Samuel
035f74946d
Bug 950986: Use ToDouble() to convert version to a double independent of locale. r=doug.turner
2014-01-08 12:22:24 -05:00
Andrew McCreight
1aa561ef0f
Bug 956080 - Rename BeginCycleCollection to TraverseRoots. r=smaug
2014-01-07 17:33:47 -08:00
Boris Zbarsky
dd2f4ef162
Bug 932837 part 2. Create a refcounted object to manage the lifetime of a JS::StackDescription. r=mccr8, terrence
2014-01-07 19:53:17 -05:00
Birunthan Mohanathas
c293ca84b8
Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
...
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Jeff Walden
b01c238639
Bug 953296 - Implement mozilla::NullptrT as a typedef to use to accept nullptr values. Also add mozilla::IsNullPointer<T>, a trait for detecting *only* true nullptr (emulated nullptr [__null] used by gcc 4.4/4.5 isn't true nullptr). r=ehsan
...
Generally, if you want a decltype(nullptr)-based overload, you should use SFINAE and IsNullPointer. (Examples are provided in NullPtr.h comments.) The problem is NullptrT matches far more than just __null as emulated nullptr for gcc 4.4/4.5 overloading purposes. This problem is unavoidable without true nullptr. Currently, the only valid use for NullptrT is believed to be in operator overloads. All existing nullptr-overloading code has been rewritten to use the appropriate technique for the situation, and MOZ_HAVE_CXX11_NULLPTR is no longer an API.
--HG--
extra : rebase_source : 01abfcb66ae569db7b04a7b53f5cd5fd8151bffd
2014-01-02 17:27:41 -06:00
Ehsan Akhgari
73dc4b008e
Bug 884368 - Part 1: Add a memory reporter for AudioContexts; r=roc,njn
2014-01-04 13:15:41 -05:00
Ehsan Akhgari
ebd358dfd7
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari
6d52f7f2e0
Bug 758992 follow-up - Mark DoNothingCallback final to avoid compiler warnings; blanket-r=bzbarsky
2014-01-03 09:54:32 -05:00
Nicholas Nethercote
1f49ef8fa9
Bug 955942 (part 3) - Merge the heap reporters. r=mccr8.
...
--HG--
extra : rebase_source : f836b1b2de9c850fa3d956bf6ef92a7c6c504fce
2014-01-02 15:19:08 -08:00
Nicholas Nethercote
82b05b710d
Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
...
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Nethercote
9505172caf
Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8.
...
--HG--
extra : rebase_source : f760568c08af03d9fec316bf95e7d4388078a03d
2013-12-11 11:59:39 -08:00
Andrew McCreight
b6ece55812
Bug 950959 - Rename scheduled cycle collector stuff to slice. r=smaug
2014-01-01 11:00:35 -08:00
Andrew McCreight
5b5e6a9500
Bug 950949 - Run forgetSkippable per CC not per slice. r=smaug
2014-01-01 11:00:35 -08:00
Ms2ger
fe059e78f7
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
2013-12-31 10:06:11 +01:00
Andrew McCreight
f83384339e
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-22 09:58:19 -05:00
Ted Mielczarek
6ce69a9951
bug 918389 - move XPCOM abort messages into separate crash annotations. r=bsmedberg
...
--HG--
extra : rebase_source : d1762cb08c795020e2ca7612b903cd1f3d5ade50
2013-12-20 10:11:16 -05:00
Ryan VanderMeulen
383add0e97
Backed out changesets ccdc3d4f4571, 4dcc91e771e3, 0ae14946314b, and 94d22ab0b17f (bug 937960) for Windows 7 debug xpcshell failures.
2013-12-19 16:57:55 -05:00
Ehsan Akhgari
fedbdf04d7
Bug 950856 - Fail the build if you attempt to use NS_StackWalk on Windows where it won't work; r=froydnj,BenWa
2013-12-18 15:03:11 -05:00
Isura Edirisinghe
1542439ab5
Bug 676907 - Refactor (replace) calls to Gestalt because it is deprecated in OS X 10.8 and will not work in after 10.9. r=BenWa
2013-12-19 11:42:19 -05:00
Andrew McCreight
380df2f061
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 21:22:55 -08:00
Ryan VanderMeulen
75c2b59eb5
Backed out changesets b03bd1170d1c, 419615a1195d, a1b699b80442, and 524c573fd8a6 (bug 937960) for Win7 debug xpcshell orange.
2013-12-18 19:04:11 -05:00
Ryan VanderMeulen
b9f37d8887
Backed out changeset fc0610680d3b (bug 950856) for Windows bustage.
...
CLOSED TREE
2013-12-18 16:01:44 -05:00
Ehsan Akhgari
f41d2856cd
Bug 950856 - Fail the build if you attempt to use NS_StackWalk on Windows where it won't work; r=froydnj,BenWa
...
--HG--
extra : rebase_source : 914250c939e4666f4a8630f7e9e57e466b669259
2013-12-18 15:03:11 -05:00
Andrew McCreight
c6cd1b5b90
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 11:42:16 -08:00
Andy Wingo
41ba9c9473
Bug 951483 - Add back nsCycleCollector::ShutdownCollect assertion that was mistakenly removed in bug 945813. r=mccr8
2013-12-18 11:01:32 +01:00
Nils Maier
bf1452f63e
Bug 950391 - Add nsIMemoryReporterManager.unregisterStrongReporter. r=njn
...
Also do not allow to register non-native components as weak reporters.
2013-12-18 13:00:03 -05:00
Andrew McCreight
a8a41fffec
Bug 937818, part 4 - Exceeded refcount nodes should already be black. r=smaug
...
Due to graph mutation during an incremental cycle collection, objects in the CC graph
may end up with more things pointing to them than they have a ref count. However, these
objects should never become garbage.
2013-12-17 19:29:57 -08:00
Andrew McCreight
d8b513724e
Bug 937818, part 3 - Add ScanIncrementalRoots(). r=smaug
...
Any object that has been stored away somewhere in the middle of incremental graph
building must be treated as live, because we can't trust that the CC graph has
accurate information about it. If such an object is truly garbage, we'll unlink it
in the next cycle collection instead.
2013-12-17 19:29:57 -08:00
Andrew McCreight
5bbea5ab96
Bug 937818, part 1 - Add objects to the purple buffer on AddRef. r=smaug
...
ICC uses this to track objects that have been AddRef'd during ICC graph building.
For those objects, we may not have the proper information for them, so treat them
as live.
2013-12-17 19:29:57 -08:00
Carsten "Tomcat" Book
72465c7d55
Backed out changeset 261091719842 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE
2013-12-17 09:20:51 +01:00
Carsten "Tomcat" Book
94d78eb137
Backed out changeset a9715a3b0e13 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE
2013-12-17 09:20:31 +01:00
Carsten "Tomcat" Book
c0f42c8fcf
Backed out changeset ae01d2862600 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE
2013-12-17 09:20:10 +01:00