Commit Graph

4306 Commits

Author SHA1 Message Date
Wes Kocher
be1ec20396 Merge fx-team to m-c 2013-11-21 19:16:50 -08:00
Ehsan Akhgari
83e2251f24 Bug 941739 - Print the current process and thread information on XPCOM assertions and string leaks stats; r=froydnj 2013-11-21 14:17:35 -05:00
Ryan VanderMeulen
3348c203b7 Merge m-c to fx-team. 2013-11-21 15:55:03 -05:00
Ryan VanderMeulen
4e2f345770 Merge m-c to inbound. 2013-11-21 11:37:10 -05:00
Carsten "Tomcat" Book
04f396a0c7 merge mozilla-inbound to mozilla-central 2013-11-21 14:20:21 +01:00
Nicholas Nethercote
1eb09100dc Bug 940069 - Backout a temporary debugging printf that runs on --enable-valgrind builds only, because it has served its purpose. r=me. 2013-11-20 00:27:00 -08:00
Alexander Surkov
a2c0e69c2e Bug 935698 - isolate nsIAccessibleValue implementation into separate class, r=tbsaunde 2013-11-19 16:01:15 -05:00
Jim Blandy
7cf9e41fc9 Bug 896100: Convert all uses of OldMove and MoveRef to true rvalue references and the modern Move and Forward. r=luke, r=waldo 2013-11-19 09:05:36 -08:00
ISHIKAWA, Chiaki
895ce76e63 Bug 936987 - Propagate the error code of PR_Close() against a file under CIFS-share under Linux. r=froydnj
(Network error causes the file share to fail, and read()/close() and possibly write() can return network-related error. close() error was not caught before.)
2013-11-19 14:56:58 -05:00
Andrew McCreight
08b67b0ec5 Bug 935721, part 10 - Separate nsCycleCollector_collect and nsCycleCollector_scheduledCollect. r=smaug 2013-11-20 14:35:17 -08:00
Andrew McCreight
4d92c18b57 Bug 935721, part 9 - Move mPtrToNodeMap into GCGraph. r=smaug
With ICC, we may have to remove things from the graph after we have finished building
the graph, so move the mapping to graph addresses into the graph itself to create a
more self-contained structure.
2013-11-20 14:35:17 -08:00
Andrew McCreight
109f8fb1a3 Bug 935721, part 8 - Add a reference to the graph to the graph builder. r=smaug
This moves towards letting the CC graph outlive the builder.
2013-11-20 14:35:16 -08:00
Andrew McCreight
3d8b9e987d Bug 935721, part 7 - Inline PrepareForCollection into BeginCollection. r=smaug
PrepareForCollection is trivial now, so just inline it.
2013-11-20 14:35:16 -08:00
Andrew McCreight
9c3c29695f Bug 935721, part 5 - Invert the control flow of CycleCollectNow's pre- and post-collection work, add CCResults as a field on the CC. r=smaug
nsJSEnvironment::CycleCollectNow does work before and after a CC runs. With ICC, nsJSEnv won't
know where in the CC when a CC is about to begin or end, so this patch reorganizes that work
into two separate callback hooks.  This requires adding a new struct, CycleCollectorStats, to
hold data nsJSEnv needs between the two calls.

Rather than trying to pass around a pointer to a results structure, this patch just adds
it to the nsCycleCollector struct, and always stores them. The results are passed back
to the end CC callback.
2013-11-20 14:35:16 -08:00
Andrew McCreight
c277987d70 Bug 935721, part 4 - Allocate white nodes array in CollectWhite. r=smaug
The white nodes array is only used in CollectWhite, so just allocate it there.
2013-11-20 14:35:16 -08:00
Andrew McCreight
1f195eaf59 Bug 935721, part 3 - Use RAII to set mScanInProgress, hoist out MarkRoots and ScanRoots. r=smaug
With ICC, mScanInProgress gets set and cleared a bunch of times so add an RAII class to turn
it on when we're doing stuff and clear it when we're not.

With that in place, we can easily move MarkRoots and ScanRoots out of BeginCollection
in preparation for making them separate phases in ICC.
2013-11-20 14:35:16 -08:00
Andrew McCreight
95a4e63f9c Bug 935721, part 2 - Allocate GCGraphBuilder on the heap. r=smaug
With ICC, the graph builder must persist across invocations of the CC,
so store it on the heap.
2013-11-20 14:35:15 -08:00
Andrew McCreight
bcec4369fd Bug 935721, part 1 - Store the listener pointer on the nsCycleCollector data structure. r=smaug
With ICC, the listener must persist across invocations of the CC, so store it on the CC.
2013-11-20 14:35:15 -08:00
Benjamin Smedberg
f2456d8d28 Bug 672843 part D - make NS_ERROR_INVALID_POINTER an alias of NS_ERROR_INVALID_ARG, r=froydnj 2013-11-19 16:27:37 -05:00
Benjamin Smedberg
dca2c2b5ab Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric 2013-11-19 16:27:37 -05:00
Benjamin Smedberg
d866f6b84f Bug 672843 part B - Remove NS_ENSURE_PROPER_AGGREGATION, r=froydnj 2013-11-19 16:27:36 -05:00
Benjamin Smedberg
f9d80661a4 Bug 672843 part A - Create the new macro NS_WARN_IF and deprecate NS_ENSURE_* in favor of the explicit warning/return style. Also localize each macro so that it's debug and non-debug versions are local in the file, because that makes it easier for new contributors to understand. r=froydnj sr=jst 2013-11-19 16:27:36 -05:00
Ehsan Akhgari
76f74cf7b1 Follow-up to bug 936912: Fix a compiler warning 2013-11-20 16:01:59 -05:00
Ehsan Akhgari
63b20edcc2 Bug 941405 - Remove the usages of the register keyword from XPCOM; r=froydnj 2013-11-21 10:42:40 -05:00
Ryan VanderMeulen
c0e471c6b2 Backed out changeset 4887ddabba31 (bug 939231) for mochitest hangs.
CLOSED TREE
2013-11-21 09:39:38 -05:00
Chris Kitching
43102ed4c2 Bug 913985: Part 5 - Refactor the Bridge to use the generated code. r=kats 2013-11-12 10:41:01 -08:00
Ryan VanderMeulen
7627a06670 Merge inbound to m-c. 2013-11-19 13:21:57 -05:00
James Kitchener
ec8e8ed609 Bug 936886 - Account for possibility of non-null terminated strings in nsWindowsRegKey::ReadStringValue(). r=dmajor 2013-11-19 09:09:41 -05:00
Nicholas Nethercote
bcdbb4d8cc Bug 940069 - Land a temporary debugging printf that runs on --enable-valgrind builds only, because Valgrind runs aren't available on tryserver. r=me. 2013-11-18 23:13:15 -08:00
Mike Hommey
931cb49886 Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
db9e5129bc Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
f94778cdf9 Bug 939071 - Kill SHORT_LIBNAME. r=ted 2013-11-19 11:47:47 +09:00
Mike Hommey
636b672657 Bug 914245 - Move FORCE_SHARED_LIB to moz.build. r=mshal 2013-11-19 11:47:45 +09:00
Mike Hommey
b18be7aacd Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal 2013-11-19 11:47:43 +09:00
Mike Hommey
f0d1cd1e10 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
9c5c5d8f00 Bug 939039 - Remove now useless FORCE_STATIC_LIB definitions. r=gps 2013-11-19 11:47:28 +09:00
Mike Hommey
f81885e53b Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Ehsan Akhgari
fbd7944f83 Bug 936912 - Build xpcom in unified mode; r=froydnj 2013-11-18 21:34:00 -05:00
Jonas Finnemann Jensen
58f98efab6 Bug 937201 - Fix Windows builds without MOZ_ENABLE_PROFILER_SPS. r=BenWa 2013-11-18 13:21:26 -05:00
Nicholas Nethercote
e67e1e5dc9 Backout 86b5cb334b73 and db7cbf61b001 (bug 810718, parts 1 and 2) for multiple perf regressions.
--HG--
extra : rebase_source : c20c81d0cf47b607815c0592d748d4f0a430d430
2013-11-17 20:41:36 -08:00
Chris Peterson
dcc635e27f Bug 939576 - Build netwerk/protocol/http in unified mode. r=mcmanus 2013-11-16 21:19:51 -08:00
Nathan Froyd
a0e488bb67 Bug 940160 - constify the PLDHashTableOps struct in nsTHashtable::Init; r=ehsan 2013-11-18 21:34:53 -05:00
Ehsan Akhgari
ac44b37d03 Bug 939231 - Stop requiring trace-malloc for the deadlock detector; r=bent
The existing deadlock detector code uses the trace-malloc stack walking
facilities, which is problematic for a few reasons.

1. It is only available in builds with --enable-trace-malloc, which is
   not in the default build configuration.
2. It tries to capture a symbolicated stack trace every time that a lock
   is acquired or released, which is really slow.

This patch changes the deadlock detector to use the XPCOM stack walking
and symbolification facilities, and avoids the symbolification until the
point where we need to print out the call stack, which makes the
deadlock detector a lot faster than it currently is in trace-malloc
builds.
2013-11-21 07:43:23 -05:00
Mike Hommey
03e5fc6ffa Bug 914274 - Remove MODULE_NAME. r=mshal 2013-11-21 17:31:19 +09:00
Nicholas Nethercote
2ac234c986 Bug 810718 (part 2) - Use a uint16_t for PLDHashTable::entrySize.
--HG--
extra : rebase_source : 342927bded18e5fa5289608e711cf343cecdcfcc
2013-11-13 18:38:25 -08:00
Nicholas Nethercote
06ddc29404 Bug 810718 (part 1) - Enforce pldhash RECURSION_LEVEL checks in all builds and abort on failure. r=bsmedberg.
--HG--
extra : rebase_source : 4233dc104d8db99ec19b5b4885a9ddfaa7287427
2013-10-31 19:18:56 -07:00
Mike Hommey
b564a70599 Bug 937359 - Make all objects built into xul.dll built with -MD/-MDd, not -MT/-MTd. r=bsmedberg
--HG--
rename : toolkit/mozapps/update/common/Makefile.in => toolkit/mozapps/update/common-standalone/Makefile.in
2013-11-16 13:37:56 +09:00
Phil Ringnalda
8040aa67c9 Backed out 4 changesets (bug 672843) for xpcshell bustage
Backed out changeset bbb7760083ae (bug 672843)
Backed out changeset eaf2fd75d7fc (bug 672843)
Backed out changeset eb08cc206b8d (bug 672843)
Backed out changeset 6a0e4afd52ab (bug 672843)
2013-11-19 14:38:29 -08:00
Nicholas Nethercote
6e8b08087a Bug 939385 (part 4, attempt 2) - Rename some distinguished amount functions. r=froydnj.
--HG--
extra : rebase_source : fc5a8b80752156cf8d13908eb2f961d75a954126
2013-11-18 22:37:39 -08:00
Nicholas Nethercote
5ac5ff98eb Bug 939385 (part 3, attempt 2) - Expose vsizeMaxContiguous to about:memory. r=froydnj.
--HG--
extra : rebase_source : 2a7dcf2121c323bb37094b23e329c322f25dfeeb
2013-11-18 22:37:38 -08:00