Birunthan Mohanathas
16471161bb
Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj
2014-08-25 12:17:24 -07:00
Birunthan Mohanathas
80ef08ccd8
Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj
2014-08-25 12:17:15 -07:00
Ryan VanderMeulen
81342753e0
Merge inbound to m-c. a=merge
...
CLOSED TREE
2014-08-25 11:49:37 -04:00
Jamin Liu
f895ab8db1
Bug 1032755 - Add NS_ERROR_MODULE_DOM_BLUETOOTH to nsError list and allow it to be used to create dom exception. r=smaug, f=dhylands, btian
2014-08-25 14:51:20 +08:00
Trevor Saunders
fd5e9d1fcc
bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj
2014-08-05 13:33:55 -04:00
Andrew McCreight
61760ede9d
Bug 1055322 - The realloc for libnestegg should free with size 0. r=froydnj
2014-08-21 14:43:02 -07:00
Jon Coppeard
511f6ef1c5
Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug
2014-08-13 10:05:22 +01:00
Eric Rahm
87668897f6
Bug 1056962 - Part 1: Move GetThreadName to LinuxUtils. r=jld
2014-08-22 16:35:29 -07:00
Vladimir Vukicevic
30ef1c1524
b=1046222; change XPCOM_DEBUG_BREAK default under Windows to "warn"; r=bsmedberg
2014-08-12 12:04:32 -04:00
Kyle Huey
f44be6e473
Bug 1051122: Don't infinitely recurse in CodeAddressServiceStringAlloc::free. r=dbaron
2014-08-10 09:27:23 -07:00
Birunthan Mohanathas
c70ab152cb
Bug 1050003
- Remove unnecessary if checks before delete-ing in xpcom/. r=froydnj
2014-08-08 07:04:45 -07:00
Nicholas Nethercote
a7cf4142b4
Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
...
* * *
imported patch rm-dummy-params
--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Terrence Cole
3718c92afc
Bug 1047120 - PurpleBuffer doesn't actually need to use Heap<T>; r=mccr8,jonco
2014-07-31 14:43:45 -07:00
Ehsan Akhgari
4af9c14370
Bug 1048239 - Fix more bad implicit constructors in XPCOM; r=froydnj
2014-08-05 09:36:32 -04:00
Eric Rahm
4d0205fb6f
Bug 1027921 - Part 9: Add DeadlockDetector memory reporter. r=njn, r=froydnj
2014-08-04 16:20:37 -07:00
Ryan VanderMeulen
141996a3e9
Merge m-c to inbound on a CLOSED TREE. a=merge
2014-08-01 16:01:07 -04:00
Ryan VanderMeulen
e953ea9c38
Merge inbound to m-c. a=merge
2014-08-01 15:59:05 -04:00
Ed Morley
bf8ae62798
Merge mozilla-central and b2g-inbound
2014-08-01 18:03:34 +01:00
Andrew McCreight
fb1bd79d45
Bug 1004609, part 8 - Implement a caching version of WalkTheStack using LocationService. r=froydnj
...
Then use it in ref counting.
2014-08-01 09:27:35 -07:00
Andrew McCreight
1bc1c6b551
Bug 1004593 - Remove the unused nsTraceRefCnt::Startup(). r=froydnj
2014-08-01 10:02:30 -07:00
Nicholas Nethercote
f907318caa
Bug 1046477 (part 1) - Separate the reporting of the main and static atoms tables. r=froydnj.
...
--HG--
extra : rebase_source : c60db11fc39d180e43f22e7f395eea24cd358aa3
2014-07-30 23:06:57 -07:00
Andrew McCreight
7bf01ccf5c
Backout 6bdab42ab879 for breaking S builds
2014-07-31 17:15:17 -07:00
Andrew McCreight
5789405d87
Backed out changeset a9cf5734aff2
2014-07-31 17:14:34 -07:00
Andrew McCreight
43d6f265f1
Bug 1004609, followup - fix non STACKWALKING_AVAILABLE builds. r=bustage
2014-07-31 17:02:02 -07:00
Andrew McCreight
7129a441e8
Bug 1004609, part 8 - Implement a caching version of WalkTheStack using LocationService. r=froydnj
...
Then use it in ref counting.
2014-07-31 16:39:25 -07:00
Andrew McCreight
081e25d9f3
Bug 1004609, part 7 - Move LocationService into xpcom. r=njn,froydnj
2014-07-31 16:39:25 -07:00
Andrew McCreight
d195958a97
Bug 1004609, part 6 - Add empty CodeAddressService.h file. r=froydnj
2014-07-31 16:39:25 -07:00
Nathan Froyd
12c76f15f7
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium
2014-07-24 11:55:33 -04:00
Thinker K.F. Li
e9dc84b5a1
Bug 977026 - Part 2: B2G loader. r=khuey, r=cyu
...
--HG--
rename : ipc/app/MozillaRuntimeMain.cpp => ipc/contentproc/plugin-container.cpp
2014-07-30 03:24:00 -04:00
Benoit Jacob
c50ccf8dba
Bug 1044658 - 5/6 - remove asWeakPtr - r=froydnj
2014-07-30 15:52:05 -04:00
Ehsan Akhgari
3fa82c9346
Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj
2014-07-29 20:43:56 -04:00
Andrew McCreight
44c42eea7a
Bug 1037510, part 1 - Add nursery size as a parameter of CycleCollectedJSRuntime. r=khuey
2014-07-29 15:38:14 -07:00
Daniel Holbert
ff3ada8eb7
Bug 1045110 - Add parens around assignment in "while" condition, to silence GCC Wparentheses warning. r=njn
2014-07-28 17:09:00 +02:00
Mike Hommey
9424087517
Backout changesets 7ff3cd713466, f8ec5977a454 and c7c37390b46b (bug 977026) for b2g bustage on a CLOSED TREE.
2014-07-29 14:50:41 +09:00
Wes Kocher
1ce0c3e306
Merge m-c to inbound on a CLOSED TREE
2014-07-28 18:51:24 -07:00
Carsten "Tomcat" Book
aeabc85ae7
Merge mozilla-central to b2g-inbound
2014-07-28 16:06:50 +02:00
Thinker K.F. Li
5a9232dbfc
Bug 977026 - part 2: B2G loader. r=khuey,cyu
...
--HG--
rename : ipc/app/MozillaRuntimeMain.cpp => ipc/contentproc/plugin-container.cpp
2014-07-25 20:52:00 +02:00
Andrew McCreight
b4fcba544d
Bug 1038887 - Add back null check to nsErrorService::GetErrorStringBundle. r=froydnj
2014-07-25 16:41:24 -07:00
Ehsan Akhgari
520fd897ed
Bug 1045065 - Fix some bad implicit constructors in xpcom; r=froydnj
2014-07-28 13:19:06 -04:00
Jon Coppeard
c71e29bdb6
Bug 1043888 - Make GetObjetZone() work on nursery objects and rename GetGCThingZone() to GetTenuredGCThingZone() r=terrence
2014-07-28 10:39:36 +01:00
Eric Rahm
64c1102336
Bug 1038888
- Extend system memory reporter to report ion memory. r=njn
...
--HG--
extra : rebase_source : 39dbc0a696d67c1a239876ec8ca412527fc2712e
2014-07-23 16:36:27 -07:00
Mike Hommey
bc5d6801bb
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00
Eric Rahm
99c9bcaeba
Bug 1038921 - Extend system memory reporter to report kgsl memory. r=njn
2014-07-21 17:25:21 -07:00
Jan Keromnes
f0379ce0c3
Bug 1035396 - Make Linux USS reporting 2x faster. r=nbp,njn
2014-07-21 18:23:49 -07:00
Nicholas Nethercote
c07ebda3e2
Bug 1035570 (part 3) - DMD: Add DMDAnalyzeHeap(), a heap snapshot function. r=erahm,mccr8.
...
The patch also adds DMDAnalyzeReports() as a synonym for DMDReportAndDump(),
and deprecates the latter.
--HG--
extra : rebase_source : 651246aa7a0a301f804c124f25beb0e8ed6cd67f
2014-05-29 23:46:09 -07:00
Ehsan Akhgari
992c52982c
Bug 1038148 - Give LowEventsReporter a private destructor; r=bjacob
2014-07-14 21:47:01 -04:00
Boris Zbarsky
a0954ac75c
Bug 857648 part 4. Add a formattedStack attribute on nsIStackFrame. r=khuey
2014-07-04 01:25:16 -04:00
Valentin Gosu
14c0879417
Bug 1036070 - Remove dangerous public destructor of VisualEventTracer r=froydnj
2014-07-13 21:16:55 +03:00
Jan de Mooij
2a7ce8f885
Bug 1034689
part 2 - Add AssignJSFlatString and use it. r=bz,terrence
2014-07-12 09:43:06 +02:00
Ed Morley
15de8c4224
Backed out changeset d89a7ed61c19 (bug 1035396) for asan failures
2014-07-11 15:58:21 +01:00
Jan Keromnes
d416feecc8
Bug 1035396 - Make Linux USS reporting 2x faster. r=nbp, r=njn
2014-07-11 05:03:00 -04:00
Jon Coppeard
07673e8cf9
Bug 1034621 - Make it possible to configure nursery size r=terrence
...
--HG--
extra : rebase_source : 7bdf2b2b15712a31baa34501ef4adcfe0ef8bf7d
2014-07-11 09:59:05 +01:00
Andrew McCreight
6b5301fe94
Bug 1033654 - Rename GCGraphBuilder to CCGraphBuilder. r=smaug
2014-07-09 21:31:00 +02:00
Jan Beich
c7cfdee5c9
Bug 1035747 - Fix dangerous public destructors specific to FreeBSD. r=bjacob
2014-07-08 05:21:00 +02:00
Shashank Sabniveesu
7c6ac09613
Bug 1019913 - If gBloatView fails, call |maybeUnregisterAndCloseFile()| on gBloatLog instead of setting it to NULL. r=nfroyd
2014-07-07 16:10:00 +02:00
Benoit Jacob
4591b4f708
Bug 1035394 - Fix dangerous public destructors in xpcom - r=khuey
2014-07-08 17:23:17 -04:00
Benoit Jacob
cb33a38711
Bug 1028588 - Fix more, recently introduced dangerous public destructors - r=ehsan
2014-07-05 16:35:35 -04:00
Benoit Jacob
e3ac914b37
Bug 1033358 - Make NS_IsMainThread use its own TLS so it's always correct, from early init to exit time - r=bsmedberg
2014-07-04 06:34:15 -04:00
Carsten "Tomcat" Book
0715e0d433
Backed out changeset e4dd7f8cf275 (bug 857648)
2014-07-04 08:23:32 +02:00
Boris Zbarsky
494319b5b1
Bug 857648 part 4. Add a formattedStack attribute on nsIStackFrame. r=khuey
2014-07-04 01:25:16 -04:00
Ryan VanderMeulen
6d9424856d
Backed out 10 changesets (bug 1033358, bug 774388, bug 1028383) for causing frequent shutdown crashes on a CLOSED TREE.
...
Backed out changeset a54b05c9e4a1 (bug 1028383)
Backed out changeset 37985f79e0c2 (bug 774388)
Backed out changeset d07521729077 (bug 774388)
Backed out changeset 9f14b17f358c (bug 774388)
Backed out changeset 2d347d6aa9bc (bug 774388)
Backed out changeset 99581dfb5ec4 (bug 774388)
Backed out changeset 2532e22d6135 (bug 774388)
Backed out changeset 719844108f1a (bug 774388)
Backed out changeset 7829c78348a4 (bug 1033358)
Backed out changeset c571df9a85de (bug 1033358)
2014-07-03 20:37:05 -04:00
Eric Rahm
4b7b1edadc
Bug 1024788 - CollectPmemReports leaks |sizeFile| on fscanf error. r=njn
2014-07-03 16:02:59 -07:00
Benoit Jacob
0e68107d00
Bug 1033358 - Make NS_IsMainThread use its own TLS so it's always correct, from early init to exit time - r=bsmedberg
2014-07-03 14:53:24 -04:00
Jed Davis
1e4a828cc8
Bug 956961 - Open content processes' DMD log files in the parent process. r=njn
...
--HG--
extra : rebase_source : 2958f582f43bfac86ec29d784b4fb8825ca17257
extra : histedit_source : 96e39e36cbe506332d761c375b902284a695901a%2C245fc9ec3c6a3bbf4e5e5ce7b0da63f4477f36b9
2014-07-02 15:59:02 -07:00
Wes Kocher
03cdc19fec
Backed out 3 changesets (bug 956961) for non-unified build bustage
...
Backed out changeset f1be89cb58b9 (bug 956961)
Backed out changeset 272b01e4f856 (bug 956961)
Backed out changeset 56907af18c66 (bug 956961)
2014-07-02 15:03:29 -07:00
Monica Chew
1ce06a3399
Bug 1024610: Register tracking protection list and hook it up in nsChannelClassifier (r=gcp)
2014-07-02 12:41:00 -07:00
Boris Zbarsky
799cac3554
Bug 1033157. Move the setup of the JSRuntime DOM callbacks into the CycleCollectedJSRuntime constructor, so we don't have to separatedly do it for workers, windows, and xpcshell. r=khuey
2014-07-02 15:16:42 -04:00
Jed Davis
adc6a05bd1
Bug 956961 - Open content processes' DMD log files in the parent process. r=njn
2014-07-02 11:27:48 -07:00
Benoit Jacob
81effa4bca
Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd
2014-06-30 18:11:53 -04:00
Aaron Klotz
bd7ede9416
Bug 1026100: Add profile-do-change observer to nsSystemInfo to gather profile-dependent system information; r=bsmedberg
2014-06-30 21:48:57 -06:00
Andrew McCreight
330696db42
Bug 1023758, part 2 - Dead traversed objects should be treated as incremental roots and colored. r=smaug
2014-06-30 16:18:47 -07:00
Andrew McCreight
9e6d927b37
Bug 1023758, part 1 - Refactor the node scanning loop in nsCycleCollector::ScanIncrementalRoots(). r=smaug
...
This will make it easier to scan for things besides gray JS nodes. It slightly
reorders the tests we do, but it shouldn't really matter.
2014-06-30 16:18:46 -07:00
Wes Kocher
03da42e8b1
Backed out 4 changesets (bug 1028588) for build bustage
...
Backed out changeset 13a8bae671ca (bug 1028588)
Backed out changeset 19a19833f1d6 (bug 1028588)
Backed out changeset d5fae80054de (bug 1028588)
Backed out changeset 5942ad3859b8 (bug 1028588)
2014-06-30 15:50:19 -07:00
Benoit Jacob
522e4724cc
Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd
2014-06-30 18:11:53 -04:00
Birunthan Mohanathas
c9fb2c0d48
Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj
2014-06-30 08:39:45 -07:00
Andrew McCreight
ddc6e4ad99
Bug 1029660
- Remove nsContentUtils::DeferredFinalize. r=peterv
2014-06-26 09:29:05 -07:00
Jed Davis
0d80c18130
Bug 1027434 - Report non-main-thread stacks in SystemMemoryReporter. r=njn
...
This depends on tagged anonymous memory in order to avoid stacks merging
with adjacent non-stack virtual memory areas.
2014-06-24 12:15:32 -07:00
Jason Orendorff
26bdfdcc2f
Bug 645416, part 3 - Symbol layout and GC support for allocating them. r=terrence.
...
Layout: js/src/vm/Symbol.h defines the new class JS::Symbol. JS::Symbol is the
same size as JSString on all platforms, because the allocator does not support
smaller allocations.
Allocation: Since the purpose of symbols is to serve as property keys, they are
always allocated in the atoms compartment.
We take a lock when allocating. This could probably be replaced with a
main-thread-only assertion. However, if atom allocation is not already a
bottleneck, symbol allocation probably never will be.
Symbols are given their own finalize-class in the GC. This means we allocate a
page per zone for symbols, even though they are only ever allocated in the
atoms zone. Terrence thought this could be easily fixed later. It should be; we
never touch the page, but a 32-bit virtual address space does not just have
infinite pages to spare.
A jsapi-test exercises the new symbol allocation code. A few oddities in
jsapi-tests are fixed in passing.
Discussion after review led to some new assertions about minimum object size in
AllocateObject and AllocateNonObject.
--HG--
extra : rebase_source : 45abb651d3b1b493d77a5dd0eb554f96b058c63a
2014-06-23 10:55:51 -05:00
Jonathan Watt
b73bc43c94
Bug 1016680, part 5 - Report the memory used by PresShell::mCaret. r=dbaron
2014-06-22 23:02:59 +01:00
Chris Peterson
4d8cb6ff03
Bug 1013065 - Remove bug 65664's NSCAP_DONT_PROVIDE_NONCONST_OPEQ workaround. r=dbaron
2014-05-04 23:11:04 -07:00
Birunthan Mohanathas
bc0233fe47
Bug 1026535 - Fix mismatched class/struct tags. r=ehsan
2014-06-18 17:57:51 -07:00
Nicholas Nethercote
aaf6fb2124
Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
...
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Eric Faust
f9d65507e2
Bug 1011660 - Remove separate DOMClass struct. (r=bz)
2014-06-18 13:19:19 -07:00
Jed Davis
80b5f82cde
Bug 1011350 - Collect TaggedAnonymousMemory info in SystemMemoryReporter. r=njn
...
To allow flexibility in tagging, and integrate with non-Gecko uses of
this facility (e.g., Bionic's malloc() tags with "libc_malloc"), the
fixed list of memory kinds used to aggregate across processes is replaced
with arbitrary strings.
2014-06-17 17:56:00 +02:00
Jan Beich
1d8a86d41b
Bug 1015547 - Fill |struct nsID| via arc4random_buf if available on Android and BSDs. r=vlad, r=glandium
2014-06-02 18:42:00 -04:00
Jan Beich
ddc9fe103d
Bug 1015547 - Prefer arc4random to generate UUIDs on BSDs. r=vlad, r=glandium
2014-06-02 18:41:00 -04:00
Ryan VanderMeulen
ef66038dae
Merge m-c to inbound on a CLOSED TREE. a=merge
2014-06-16 14:26:54 -04:00
Daniel Stenberg
43f0c8ec63
Bug 237623 - detect broken HTTP1.1 transfers. r=mcmanus,seth
...
Return error when the protocol layer detects a framing error. More data
was supposed to be delivered than what actually did arrive.
Error code returned for this: NS_ERROR_NET_PARTIAL_TRANSFER
In HTTP1.1 for Content-Length: and chunked-encoding underruns
In http2 and SPDY for framing errors when data has already been received.
imgRequest::OnStopRequest will keep partially loaded images shown but
remove them from cache.
2014-06-09 00:15:00 +02:00
Jan Keromnes
5afc74ea35
Bug 976024 - Track Unique Set Size in the Developer HUD. r=21, r=njn
2014-06-13 06:38:00 +02:00
Jan Varga
55b6d367ce
Bug 1006485 - Part a: Rename FileHandle to MutableFile and LockedFile to FileHandle; r=bent
...
--HG--
rename : dom/filehandle/FileHandle.cpp => dom/filehandle/MutableFile.cpp
rename : dom/filehandle/FileHandle.h => dom/filehandle/MutableFile.h
rename : dom/filehandle/test/test_lockedfile_lifetimes.html => dom/filehandle/test/test_filehandle_lifetimes.html
rename : dom/filehandle/test/test_lockedfile_lifetimes_nested.html => dom/filehandle/test/test_filehandle_lifetimes_nested.html
rename : dom/filehandle/test/test_lockedfile_ordering.html => dom/filehandle/test/test_filehandle_ordering.html
rename : dom/filehandle/test/test_overlapping_lockedfiles.html => dom/filehandle/test/test_overlapping_filehandles.html
rename : dom/filehandle/test/test_readonly_lockedfiles.html => dom/filehandle/test/test_readonly_filehandles.html
rename : dom/indexedDB/IDBFileHandle.cpp => dom/indexedDB/IDBMutableFile.cpp
rename : dom/indexedDB/IDBFileHandle.h => dom/indexedDB/IDBMutableFile.h
rename : dom/webidl/IDBFileHandle.webidl => dom/webidl/IDBMutableFile.webidl
rename : dom/webidl/FileHandle.webidl => dom/webidl/MutableFile.webidl
2014-06-12 05:35:29 +02:00
Ehsan Akhgari
dab181fc1f
Bug 1022420 - Disable NS_NO_VTABLE on clang-cl in order to avoid the compiler warning; r=froydnj
2014-06-09 07:57:10 -04:00
Chris Peterson
163d828c29
Bug 945029 - Fix up Android's broken [u]intptr_t inttype macros. r=Waldo
2014-05-12 22:27:14 -07:00
Nicolas B. Pierron
e05d0c8fe9
Bug 1014071
- Add support for USS on Linux. r=BenWa,njn
2014-06-05 08:31:09 -07:00
Olli Pettay
3fa67f89f1
Bug 1020622 - Trace black windows' (webidl) event listeners, r=mccr8
2014-06-05 02:48:50 +03:00
Jeff Muizelaar
601a3063e8
Bug 1017132. Don't call printf in FramePointerStackWalk. r=dbaron
...
This avoids hangs while profiling.
--HG--
extra : rebase_source : 1f6dd552ed3f26017107f41283ca667a246765c0
2014-06-03 15:42:10 -04:00
Robert O'Callahan
9875463556
Bug 1015664
. Part 3: Remove NS_HIDDEN_VISIBILITY from NS_IMETHOD_VISIBILITY. r=bsmedberg
2014-06-03 00:08:27 +12:00
Robert O'Callahan
2a92625af7
Bug 1015664
. Part 2: Remove some NS_HIDDEN usage. r=bsmedberg
2014-06-03 00:08:24 +12:00
Robert O'Callahan
cbb8fdebfc
Bug 1015664
. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
2014-06-03 00:08:21 +12:00
Victor Porof
9ce7e9c089
Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj
2014-05-23 17:12:29 -04:00
Jan Beich
5fd1e63768
Bug 1015497 - Enable FifoWatcher and its consumers on every Unix. r=froydn,jld
2014-05-29 05:24:00 +02:00
Brian Hackett
4e0b65ef88
Bug 941805 - Use helper thread pool in all runtimes in a process, r=billm.
2014-05-29 13:06:23 -06:00
Jason Orendorff
4d8e246878
Follow-up to bug 987995, rev ca1f7ae987ee, to fix builds without MOZ_CRASHREPORTER. r=red on a CLOSED TREE.
2014-05-29 13:41:54 -05:00
Jason Orendorff
0629a4a901
Bug 987995, part 4 - Add new crash reporter annotations for JS out-of-memory conditions. r=mccr8,r=bsmedberg.
2014-05-22 08:18:02 -05:00
Jan Beich
e5a908fdee
Bug 1016631 - Cosmetic fix to use correct type for sysctl()'s 2nd argument. Also s/NULL/nullptr/ style fix in my code. r=gcp, r=vladan
2014-05-28 18:11:00 -04:00
Jan Beich
b55534e2c2
Bug 1013675- Implement nsDebugImpl::GetIsDebuggerAttached() on BSDs. r=vladan
2014-05-20 17:20:00 -04:00
Ehsan Akhgari
5b0272c079
Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem
2014-05-25 21:46:24 -04:00
Eric Rahm
33a51f0c36
Bug 1006769 - Part 1: Improve heap-overhead memory reporting. r=njn
2014-05-21 17:34:06 -07:00
Kyle Huey
8c5cca136c
Bug 996133: Remove unnecessary NS_DISPATCH_NORMAL arguments to NS_DispatchToMainThread. r=ehsan
2014-05-23 12:53:17 -07:00
Nicholas Nethercote
d71b0cc308
Bug 1014249 - Beef up the "is DMD enabled?" and "is DMD running?" checks. r=mccr8.
...
--HG--
extra : rebase_source : 868ce1a1e470e45f51447f5126982aaeb51905f1
2014-05-22 19:45:14 -07:00
Carsten "Tomcat" Book
a6835d5489
Backed out changeset 2f6f548cd175 (bug 987995) for bustage on a CLOSED TREE
2014-05-22 15:57:30 +02:00
Jason Orendorff
4af0ae2ea3
Bug 987995, part 4 - Add new crash reporter annotations. r=mccr8,r=bsmedberg.
2014-05-22 08:18:02 -05:00
Jason Orendorff
6f2b5025bf
Bug 987995, part 3 - Move memory pressure callbacks from nsJSEnvironment/XPCJSRuntime to CycleCollectedJSRuntime. r=mccr8.
2014-05-22 08:18:02 -05:00
Birunthan Mohanathas
952b834c76
Bug 869836 - Part 9: Use AssignLiteral instead of `Assign(NS_LITERAL_STRING(...))`. r=ehsan
2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
59b969f7f4
Bug 869836 - Part 8: Use `Append('c')` instead of `Append("c")`. r=ehsan
2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
aea8617b92
Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
58641805f1
Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
0e6f3a6562
Bug 869836 - Part 3: Use `Append('c')` instead of `AppendLiteral("c")`. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
19bebbc68d
Bug 869836 - Part 2: Use AppendLiteral instead of `Append(NS_LITERAL_STRING(...))`. r=ehsan
2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
a5ab25c973
Bug 869836 - Part 1: Use EqualsLiteral instead of `== NS_LITERAL_STRING(...)`. r=ehsan
2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
3cc5412d70
Bug 798033 - Remove 'using namespace' from remaining headers. r=froydnj
2014-05-18 19:34:00 -04:00
Richard Barnes
513ac90185
Bug 995385 - Add WebCrypto WebIDL interfaces. r=bz, r=cviecco, r=dkeeler
2014-05-15 06:20:00 -04:00
Nicholas Nethercote
ac01efbc73
Bug 1013078 (part 1) - Remove some dead code left over from the removal of the Leaky tool. r=dbaron.
...
--HG--
extra : rebase_source : 2382c476375c0f51c14800c1e8f363363737807e
2014-05-20 18:03:27 -07:00
Trevor Saunders
42ad93c2a2
bug 1004746
- part 1 - Remove a bunch of usage of nsAutoPtr's copy ctor r=froydnj
2014-05-07 18:05:37 -04:00
Birunthan Mohanathas
0d2648eb80
Bug 995730 - Fix style violations in xpcom/base/ (part 2). r=froydnj
2014-05-14 23:14:58 +03:00
Andrew McCreight
04c12ad3a0
Bug 1007722 - Add helper methods for gray and black JS in the CC. r=smaug
2014-05-14 09:45:50 -07:00
Andrew McCreight
61c9d86ba3
Bug 1005396 - Finish a long ICC early after graph building has finished. r=smaug
2014-05-14 09:45:50 -07:00
Nicholas Nethercote
cbc884ac7a
Bug 1005836 - Avoid slop NodePool::Block allocations. r=mccr8.
...
--HG--
extra : rebase_source : 2297b22e7a5d6679d8b25679d338f001c7427b60
2014-05-13 20:42:27 -07:00
Jed Davis
e4ced412bb
Bug 973090 - IPC remoting for child GC/CC logging. r=mccr8, r=bent
...
This has a few semi-interdependent pieces:
* Factoring out the file opening/closing/renaming from the GC/CC logging.
* Using IPC to have the child log to files that the parent opened.
* Changing nsIMemoryInfoDumper.dumpGCAndCCLogsToFile to report completion
of child process logging (which was impossible before this, and which is
needed to have a meaningful test case).
* Changing about:memory to dump logs for child processes, matching the
behavior of the "Measure" button, because it can tell the user where
they are now.
* Add a test for multiprocess GC/CC log dumping (only of the XPCOM
interface, not by clicking buttons and scraping the about:memory page,
but done as a chrome mochitest to start remote browsers); based on
test_memoryReporters2.xul in the same directory.
2014-05-13 13:13:00 -04:00
Andrew McCreight
9a4dabed51
Bug 958353, part 2 - Always check if an ICC is in progress in FixWeakMappingGrayBits(). r=smaug
...
This makes it easier to test against invalid interleavings of IGC and ICC.
2014-05-13 11:58:39 -07:00
Birunthan Mohanathas
fb371cca99
Bug 995730 - Fix style violations in xpcom/base/. r=froydnj,continuation
2014-05-13 20:41:38 +03:00
Andrew McCreight
904bc7080b
Bug 972605, part 3 - Make nsErrorService use a modern hash table. r=froydnj
2014-05-09 13:47:37 -07:00
Andrew McCreight
067ab8c161
Bug 972605, part 2 - Inline nsInt2StrHashtable. r=froydnj
...
Also clean up the style a little.
2014-05-09 13:47:36 -07:00
Andrew McCreight
a0a5973239
Bug 972605, part 1 - Rename nsErrorService arguments to aFoo form. r=froydnj
2014-05-09 13:47:36 -07:00
Andrew McCreight
cb5234676d
Bug 1005500 - Use a separate linear scan pass to mark nodes white in ScanRoots. r=smaug
...
The existing code for ScanRoots looks at all traversal roots in the graph,
and floods white or black from them. This can take up a large chunk of the
Scan/Unlink slice of ICC, maybe because graph traversal has poor locality.
Outside of a leak, the cycle collector graph is usually only large when
there is a lot of garbage (95% or more of the graph), so we want to
speed up white marking.
To do this, I add a new pass that scans every node and directly sets the
color of any node that should be white, without flooding. This is very
fast. Then a second pass floods black from any remaining grey nodes.
On the page close CC for a real page, I measured a 10x improvement in
ScanRoots() time with this algorithm, from 3ms to 0.3ms.
2014-05-08 11:28:03 -07:00
Jonathan Watt
932496b546
Bug 590790 part 2 - Add memory reporter for VectorImage's SVGDocumentWrapper's document. r=dholbert, r=njn, r=seth
2014-05-08 10:53:00 +01:00
Andrew McCreight
7076cd497f
Bug 1005975 - Define FloodBlackNode as a convenience function. r=smaug
2014-05-06 17:25:27 -07:00
Andrew McCreight
d72a4c8977
Bug 1006635, part 2 - Add more Checkpoints to the cycle collector. r=smaug
2014-05-06 17:25:27 -07:00
Andrew McCreight
b65df16afa
Bug 1006635, part 1 - Make TimeLog use doubles and reduce the threshold. r=smaug
2014-05-06 17:25:27 -07:00
Andrew McCreight
f5a7b92cdc
Bug 1005232 - Log number of incremental cycle collector slices. r=smaug
2014-05-06 17:25:26 -07:00
Andrew McCreight
0b5a958dcb
Bug 1004017 - Rename CycleCollectedJSRuntime::NeedCollect() and Collect(). r=smaug
2014-05-06 17:25:26 -07:00
Andrew McCreight
b89c24ee20
Bug 958353 - Add finishCC() and ccSlice() methods for testing incremental cycle collection. r=smaug
2014-05-06 17:25:26 -07:00
Ed Morley
cf9791d39b
Fix incorrect resolution of merge conflicts between bug 995730 and bug 1001542 (no bug; CLOSED TREE)
...
--HG--
extra : amend_source : 5b90e13f8f3a7419e26acee6e483855bdd8c3558
2014-05-06 09:00:06 +01:00
Wes Kocher
f0482d7b52
Merge m-c to b2g-inbound
2014-05-05 21:19:59 -07:00
Dave Hylands
6957a858ae
Bug 1001542 - Make OS_VERSION use b2g version info rather than Linux version info.
2014-05-05 15:24:58 -07:00
Eric Rahm
41bcb2678a
Bug 999473 - report number of open file descriptions (fd) in about:memory. r=njn
2014-04-25 13:00:15 -07:00
Ryan VanderMeulen
2825c84a5b
Backed out changeset 83d914c3431d (bug 999473) for Linux mochitest-other failures.
2014-05-01 16:45:21 -04:00
Birunthan Mohanathas
8f4f3e6fea
Bug 995730 - Change xpcom/base/ to use 2 space indentation
...
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:39 +03:00
Eric Rahm
7659250728
Bug 999473 - report number of open file descriptions (fd) in about:memory. r=njn
2014-04-25 13:00:15 -07:00
Alphan Chen
cb87ad25bf
Bug 1000755 - [about:service] Refine the format of output reports. r=dhylands
2014-04-28 14:20:41 +08:00
Birunthan Mohanathas
5f1fde8824
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Zack Weinberg
cd4452471d
Bug 1001842 part 1: record the umask in NS_InitXPCOM2 and expose it to JS via nsSystemInfo. r=bsmedberg
2014-04-26 10:56:54 -04:00
Nathan Froyd
0ed717fb8f
Backout 2629257557ff:284be1609a50 (bug 1001842) for debug xpcshell bustage
2014-04-26 13:18:32 -04:00
Zack Weinberg
8d8cd9f164
Bug 1001842 part 1: record the umask in NS_InitXPCOM2 and expose it to JS via nsSystemInfo. r=bsmedberg
2014-04-26 10:56:54 -04:00
Eric Rahm
0793562b4e
Bug 1001137 - Use proper pref for configuring fifo directory. r=froydnj
...
--HG--
extra : rebase_source : 6d45f4b6b9d86ab6718d07a4a7bfe83454d095fd
2014-04-25 13:53:01 -07:00
Eric Rahm
4231758a40
Bug 1000461 - Enable triggering memory report via fifo device on OS X. r=froydnj
2014-04-24 17:35:59 -07:00
Eric Rahm
1038554fe5
Bug 1001137 - Enabling FifoWatcher via user pref does not work. r=froydnj
2014-04-24 15:58:57 -07:00
Trevor Saunders
15d1bae807
bug 980753 - make nsRefPtr movable r=froydnj
2014-02-26 18:11:14 -05:00
Eric Faust
77529f2044
Bug 1001126 - Allow AllTraces CC logging other than at shutdown. (r=mccr8)
2014-04-24 14:28:49 -07:00
Eric Rahm
1058655d11
Bug 1000621 - Check if DMD is enabled before dumping. r=njn. DONTBUILD
2014-04-24 12:43:11 -07:00
Steven Michaud
3164e19fdc
Bug 997908 - Add null check to ReleaseSliceNow() as bandaid for Mac topcrasher. r=smaug
2014-04-24 11:46:39 -05:00
Terrence Cole
56f4a8bca3
Bug 807168 - Make JSTracer into a real C++ class and kill the macro accessors; r=jonco,mccr8
...
--HG--
rename : js/public/Tracer.h => js/public/TracingAPI.h
2014-04-11 15:19:05 -07:00
Dave Hylands
39f564ba6f
Bug 990230 - Fix heap use-after-free in memory reporter. r=n.nethercote
2014-04-17 16:57:30 -07:00
Terrence Cole
6f2d911fe4
Bug 994413 - Make Gecko use the same value marking semantics as SpiderMonkey; r=jonco,mccr8
2014-04-09 12:42:48 -07:00
Nathan Froyd
b1033d7f74
Bug 993546 - refactor malloc-wrapping memory reporter implementations; r=njn
2014-04-08 13:51:20 -04:00
Márk Bartos
d3ef852c31
Bug 106787 - Fix: Remove nsIAllocator and it's references. r=bsmedberg
2014-04-14 17:20:45 +02:00
Eric Rahm
ba8b77a271
Bug 995345 - Improve efficiency of NS_DescribeCodeAddress. r=froydnj
...
--HG--
extra : rebase_source : ab839d1898d9fe122f2519a657391437dc7216bc
2014-04-14 13:25:04 -07:00
Boris Zbarsky
438ebc3f4e
Bug 995047. Change out stack/exception APIs to hand out AString instead of AUTF8String for filename/functionname, so we end up with fewer string conversions in practice. r=smaug
2014-04-11 22:20:40 -04:00
Jed Davis
9f8b3629ca
Bug 991791 - Fix some timing-dependent edge cases in nsMemoryReporterManager child handling. r=njn
...
The patch for bug 946407 changed the state space of
nsMemoryReporterManager in a subtle way: if we're using
MinimizeMemoryUsage with our report, then it's possible for all of
the child processes to finish (or for the timeout to expire) before
the parent has started reporting on itself. This could cause us to
dereference a null pointer to the state struct in StartGettingReports().
To fix this, we keep track of whether the parent has actually done its
report, and defer finishing the report until then.
2014-04-07 13:33:00 +02:00
Ben Kelly
58d5acde55
Bug 991412: Provide static convenience method to retrieve RSS. r=njn
2014-04-07 10:46:20 -04:00
Maksim Lebedev
2af751cef5
Bug 968148 - Implement PointerCapture for pointer events. r=smaug
...
--HG--
extra : rebase_source : 331cf187194c8827e4b75835e85b2d79fdc419c7
2014-04-04 10:09:10 -07:00
Jan Varga
9ec24dfafc
Bug 856921 - Ensure that all quota failures are exposed to JS as QuotaExceededError. r=bent
2014-04-02 19:14:14 +02:00
Jim Blandy
66f80ce33f
Bug 951855: Add omitted doc fix requested by smaug in patch review. DONTBUILD r=smaug
2014-04-01 21:30:42 -07:00
Jim Blandy
4837e42f09
Bug 951855: Improve documentation for nsICycleCollectionListener and nsICycleCollectionHandler. r=smaug
2014-04-01 21:12:08 -07:00
snigdha
9cc482da68
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-04-01 08:29:25 -04:00
Ehsan Akhgari
186680d83a
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Ehsan Akhgari
156d7e387b
Bug 798158 - Part 0: Do not treat format warnings as errors in a few directories; r=mshal
2014-03-27 16:38:20 -04:00
Jan Beich
8b26305527
Bug 988910 - Explictly include unistd.h for read/write/close calls. r=njn
2014-03-27 15:06:14 -04:00
Ryan VanderMeulen
a14baa39be
Merge inbound to m-c.
2014-03-26 20:58:31 -04:00
Alphan Chen
34d5bff83c
Bug 964636 - Part 2: Implement "about:service" framework core. r=dhylands
2014-03-20 10:52:11 +08:00
Alphan Chen
a0abfdd08c
Bug 964636 - Part 1: Move common classes and functions out of nsMemoryInfoDumper. r=dhylands
2014-03-20 15:29:51 +08:00
Fabrice Desré
5f762ca086
Bug 980419 - Don't access preferences omt in nsMemoryInfoDumper.cpp r=bsmedberg
2014-03-21 13:50:44 -07:00
Nathan Froyd
4bb75e1989
Bug 984443 - get rid of #ifndef $OTHER_HEADER bits from xpcom/ as relics of a bygone era; r=ehsan
2014-03-17 12:20:47 -04:00
Andrew McCreight
a6b5bb9aa6
Bug 984665 - Change the extra shutdown CC assertion into a warning. r=smaug
2014-03-19 06:05:18 -07:00
Andrew McCreight
1cbf6e74d5
Bug 984685 - Add cycle collector efficiency to COLLECT_TIME_DEBUG logging. r=smaug
2014-03-19 06:05:17 -07:00
Eric Faust
e69bd971ed
Bug 987750 - Add CC logging options for process specifiers. (r=mccr8)
2014-03-26 09:57:38 -07:00
Kyle Huey
817b5ccbd9
Bug 345123: Remove nsGetterAddRefs<T>'s operator nsISupports**. r=bsmedberg
2014-03-15 12:00:17 -07:00
Kyle Huey
b564544cf7
Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg
2014-03-15 12:00:17 -07:00
Kyle Huey
65644eb5a0
Bug 967364: Privatize already_AddRefed::mRawPtr. r=bsmedberg
2014-03-15 12:00:15 -07:00
Wes Kocher
f7a4d641fc
Merge inbound to m-c
2014-03-14 22:20:25 -07:00
Andrew McCreight
b2cea60a4b
Bug 948755 - Log incremental cycle collector roots. r=smaug
2014-03-14 16:07:07 -07:00
Andrew McCreight
dafb753061
Bug 982847 - JSGCThingParticipant::Traverse should respect AllTraces. r=smaug
2014-03-14 16:07:07 -07:00
Yuan Xulei
9d543fd864
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Ehsan Akhgari
8d63d692dd
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
a154cec3e0
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
c54675a8a9
Bug 981033 - Clear mActivelyCollecting before restarting CC. r=smaug
2014-03-11 07:34:35 -07:00
Yuan Xulei
d0efc292f4
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Jed Davis
76ab6d796b
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
cb2d3b3251
Bug 978486 - Remove nsErrorService::mErrorStringBundleKeyMap. r=froydnj
2014-03-04 09:49:40 -08:00
Bobby Holley
611c847a27
Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence
2014-03-03 08:53:42 -08:00
Jan Beich
66f56aca38
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
0dbad2da13
Bug 977688 - Get rid of CC_AbortIfNull. r=smaug
2014-02-28 09:56:23 -08:00
Masatoshi Kimura
fdd301c353
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
0353960345
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
c91b8791d1
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
03ba2e465b
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
937585f08c
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
11bc10edd4
Bug 975434 - Remove the ability to cancel memory minimizations. r=njn
2014-02-25 16:37:30 +01:00
Ehsan Akhgari
0202c9a0e3
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
0db909c03c
Backed out changeset f74c9326b89c (bug 976247) because I landed the wrong patch :(
2014-02-24 21:07:37 -05:00
Ehsan Akhgari
32e2ca0af5
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
c102d49715
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
7d750b2a18
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
91839ef80b
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
a4dcc16612
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
a8a0206da1
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
91d5779d1b
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
5704b555e2
Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-20 21:33:49 -05:00
Andrew McCreight
833279b6b8
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
915a1940a3
Bug 901597, part 1 - Move CC logging logic into nsCCParams. r=smaug
2014-02-20 14:27:03 -08:00
Andrew McCreight
04756efc8f
Bug 972940 - Rename XPCOM_CC_ env vars to MOZ_CC_. r=smaug,njn
2014-02-20 14:27:03 -08:00
Andrew McCreight
344c61d00e
Back out bug 712939 for not getting fully reviewed.
2014-02-20 06:40:56 -08:00
Chris Peterson
56af4fda84
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=mccr8
2014-02-17 23:56:19 -08:00
Andrew McCreight
0cc6333124
Backout bug 972940 for valgrind leaks on this CLOSED TREE
2014-02-19 17:20:48 -08:00
Andrew McCreight
3cb3bca6a3
Backout bug 901597 for valgrind leaks
2014-02-19 17:19:17 -08:00
Andrew McCreight
013dd784f5
Backout bug 901597 for valgrind leaks
2014-02-19 17:18:59 -08:00
Andrew McCreight
c47c19f9cd
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
c2269e1629
Bug 901597, part 1 - Move CC logging logic into nsCCParams. r=smaug
2014-02-19 13:27:14 -08:00
Andrew McCreight
3f976fe0cf
Bug 972940 - Rename XPCOM_CC_ env vars to MOZ_CC_. r=smaug
2014-02-19 13:27:14 -08:00
Eric Rahm
4ebc8a29dc
Bug 972170 - Add zram reporting to about:memory. r=njn
2014-02-19 11:08:38 -08:00
Brian Hackett
2a9fd71c02
Bug 964059 - Share atoms compartment/zone between multiple runtimes, r=billm,bent.
2014-02-19 09:02:13 -07:00
Daniel Holbert
c516662c22
back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage.
2014-02-19 00:15:51 -08:00
Chris Peterson
dcfc7e9c20
Bug 712939 - Replace JS_STATIC_ASSERT with static_assert outside js/ directory. r=mccr8
2014-02-17 23:56:19 -08:00
Justin Shrake
c53b5e864f
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
73b8879e45
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
7cce3037c1
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
5767cc440b
Bug 970483 - Fix the logic to determine the pre-RTM Windows 7. r=bbondy
2014-02-12 23:49:06 +09:00
Andrew McCreight
02daa1568c
Bug 966359 - Prevent FreeSnowWhite reentrance. r=smaug
2014-02-11 14:56:44 -08:00
Masatoshi Kimura
705f1bb1ab
Bug 970483 - Part 1: Introduce IsWindowsBuildOrLater() and IsWin7RTMOrLater(). r=bbondy
2014-02-12 06:01:29 +09:00
Masatoshi Kimura
18d6c0f5ff
Backed out changeset d7d447cac91b (bug 969762) for tp5 regression.
2014-02-12 06:01:29 +09:00
Mike Hommey
262e8724ba
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
815e4d5f22
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
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
Masatoshi Kimura
679ef4d260
Bug 969762 - Support non-ASCII dump() messages on Windows. r=jimm
2014-02-11 05:50:16 +09:00
Neil Rashbrook
5c623b13c4
Bug 969324 Remove unnecessary ReporterEnumerator r=njn
2014-02-10 19:26:08 +00:00
Thomas Zimmermann
2102159214
Bug 968849: Fix GCC warnings about uninitialized variables, r=froydnj
2014-02-06 17:57:38 +01:00
Nicholas Nethercote
9c25748c63
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
f6f08af0a0
Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc
2014-01-29 20:40:34 -08:00
Birunthan Mohanathas
02d0812720
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Nathan Froyd
b6923671aa
Bug 964415 - add include guards to nsMemoryReporterManager.h; r=njn
2014-01-27 14:54:37 -05:00
Bobby Holley
44cd3fcb36
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
0ba0cf3428
Bug 958816 - UUIDs updated to make strings in nsIStackFrame API sane CLOSED TREE
2014-01-20 18:47:35 +01:00
Andrea Marchesini
b66fa0e177
Bug 958816 - Make strings in nsIStackFrame API sane, r=bz
2014-01-20 17:51:41 +01:00
Nathan Froyd
29bd66584a
Bug 960700 - delete incorrect comment from nsStackWalk.cpp; r=ehsan
2014-01-16 14:53:04 -05:00
Ryan VanderMeulen
4578dde0df
Backed out changeset 965cf4cbedc8 (bug 958816) for mochitest crashes.
...
CLOSED TREE
2014-01-17 10:20:05 -05:00
Andrea Marchesini
697ba5a8a2
Bug 958816 - Make strings in nsIStackFrame API sane, r=bz
2014-01-17 15:24:03 +01:00
Nathan Froyd
a671e699c6
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
77759a327d
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
a693e40605
Bug 948204 - Add pmem regions to the system memory report. r=njn
2014-01-14 10:03:31 -05:00
Steven Michaud
dd64672e33
Bug 956310 - DMD builds fail on Mac OS X. r=bgirard
2014-01-08 17:06:22 -06:00
Marina Samuel
8d3cdd80b7
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
b0d96345f5
Bug 956080 - Rename BeginCycleCollection to TraverseRoots. r=smaug
2014-01-07 17:33:47 -08:00
Boris Zbarsky
72e2ce7440
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
d05644b6b3
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
5d3f01c937
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
60eb19e15a
Bug 884368 - Part 1: Add a memory reporter for AudioContexts; r=roc,njn
2014-01-04 13:15:41 -05:00
Ehsan Akhgari
1b83407ce9
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
75a3c1b080
Bug 758992 follow-up - Mark DoNothingCallback final to avoid compiler warnings; blanket-r=bzbarsky
2014-01-03 09:54:32 -05:00
Nicholas Nethercote
ff52f4208f
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
91175eb896
Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
...
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Nethercote
9366b60202
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
91646dadb8
Bug 950959 - Rename scheduled cycle collector stuff to slice. r=smaug
2014-01-01 11:00:35 -08:00
Andrew McCreight
64258f4913
Bug 950949 - Run forgetSkippable per CC not per slice. r=smaug
2014-01-01 11:00:35 -08:00
Ms2ger
561cae4a0e
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
2013-12-31 10:06:11 +01:00
Andrew McCreight
53e4433905
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-22 09:58:19 -05:00
Ted Mielczarek
691df07b08
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
e8e36d08b0
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
76f262cff3
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
ffae418d41
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
03a8a8e082
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 21:22:55 -08:00
Ryan VanderMeulen
96ec232042
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
0d91cad5c8
Backed out changeset fc0610680d3b (bug 950856) for Windows bustage.
...
CLOSED TREE
2013-12-18 16:01:44 -05:00
Ehsan Akhgari
54a364d5ac
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
890aa014bf
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 11:42:16 -08:00
Andy Wingo
0efae2b21b
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
ec65c8410d
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
11f2c0ea43
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
ab69eca538
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
76b4feac36
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
dd80853527
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
f1d19f75cb
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
ad47674f4c
Backed out changeset ae01d2862600 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE
2013-12-17 09:20:10 +01:00
Andrew McCreight
31e4486875
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-16 21:30:54 -08:00
Andrew McCreight
4b11c4307f
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-16 21:30:53 -08:00
Andrew McCreight
3145a6bc8f
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-16 21:30:53 -08:00
Nicholas Nethercote
12910b47d0
Bug 945973 (part 4) - Add SystemMemoryReporter, which presents Linux-specific, system-wide memory measurements taken from the OS. r=glandium.
...
--HG--
extra : rebase_source : 032d1d2944b790ac9e9e4d7f18c8ac9d79858ef3
2013-12-04 19:32:50 -08:00
Nicholas Nethercote
da333f0919
Bug 945973 (part 2) - Don't complain if there aren't any "explicit" reports for a process. r=mccr8.
...
--HG--
extra : rebase_source : 05129260b8a3e7cfbdadcecffe4c18715254323c
2013-12-03 20:19:41 -08:00
Nicholas Nethercote
51c80b126d
Bug 945973 (part 1) - Remove about:memory's is-a-sentence description check. r=mccr8.
...
--HG--
extra : rebase_source : bf47145a953a23b73fa1e7c441b695ffeceafbb8
2013-12-03 20:10:59 -08:00
Wes Kocher
51be634cd2
Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE
2013-12-16 18:27:43 -08:00
Sean Stangl
59305924cb
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Trevor Saunders
d43c55ca0e
bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj
2013-12-12 20:50:01 -05:00