Commit Graph

13619 Commits

Author SHA1 Message Date
Ben Kelly
2e310809bb Bug 1133939 P1 Free buffer resources when an nsPipeInputStream is closed. r=froydnj 2015-02-21 09:51:17 -05:00
Carsten "Tomcat" Book
3c43e59507 Backed out changeset 4b7febba9c14 (bug 1140105) for m2 test failures 2015-03-12 11:42:40 +01:00
Neil Rashbrook
bd1fe0f27a Bug 1140105 Can't query for a specific font face when the selection is collapsed r=ehsan 2015-03-12 08:40:29 +00:00
Nicholas Nethercote
3aebac5d0d Bug 1142277 - Fix leak in failure path in TestPLDHash. r=erahm.
--HG--
extra : rebase_source : fbd5cf61033b9cffe099a6b216c41ae6a89b875e
2015-03-11 15:39:58 -07:00
Nathan Froyd
e7363b8b6b Bug 1141692 - use an actual Atomic for nsThreadPoolNaming::mCounter; r=bsmedberg
Marking a variable as volatile is never the right thing to do when
dealing with threads.  Use real atomic accesses instead.
2015-03-10 14:41:45 -04:00
Nathan Froyd
8c2657fa26 Bug 1140509 - remove the unused Infinity keyword from the xpidl parser; r=bsmedberg 2015-03-09 14:02:26 -04:00
Jed Davis
3023c21f00 Bug 1140714 - Pass through remote NS_OpenAnonymousTemporaryFile failure to caller. r=billm
--HG--
extra : rebase_source : fd35b8f72fc8fc0ab3982be510acddef9db57759
2015-03-10 10:32:00 +01:00
Nathan Froyd
4380a42bbc Bug 1141689 - use services::GetObserverService more; r=ehsan 2014-04-29 13:31:06 -04:00
Andrew McCreight
def1230d4e Bug 1119482, part 4 - Move IsJSHolder into HoldDropJSObjects. r=smaug 2015-03-10 16:41:38 -07:00
Andrew McCreight
2cf438367a Bug 1119482, part 3 - Move the Hold and DropJSObjects implementations to a new HoldDropJSObjects.cpp file. r=smaug 2015-03-10 16:41:38 -07:00
Andrew McCreight
ea55946825 Bug 1119482, part 2 - Move HoldDropJSObjects.h from xpcom/glue to xpcom/base. r=froydnj
This will clear the way for a HoldDropJSObjects.cpp, as xpcom/glue seems to use weird linking rules.

--HG--
rename : xpcom/glue/HoldDropJSObjects.h => xpcom/base/HoldDropJSObjects.h
2015-03-10 16:41:38 -07:00
Andrew McCreight
a5fe5ce48e Bug 1119482, part 1 - Use CycleCollectedJSRuntime::Get() in the various CC wrapper methods. r=smaug
It is a little cleaner to use this helper method if we only care about the CCJSRuntime pointer,
and it will let us move some of these methods out of this file more easily.
2015-03-10 16:41:38 -07:00
Andrew McCreight
3367b6f363 Bug 1139050, part 2 - Move nsAlgorithm.h to xpcom/base. r=froydnj
--HG--
rename : xpcom/string/nsAlgorithm.h => xpcom/base/nsAlgorithm.h
2015-03-10 16:41:38 -07:00
Andrew McCreight
75b58ba304 Bug 1139050 - Add moz.build BUG_COMPONENT metadata for xpcom/. r=froydnj 2015-03-10 16:41:38 -07:00
Wes Kocher
d8ac0068e5 Merge b2g-inbound to m-c a=merge CLOSED TREE 2015-03-10 15:44:53 -07:00
Wes Kocher
74430ec4c7 Merge inbound to m-c a=merge CLOSED TREE 2015-03-10 15:33:33 -07:00
Carsten "Tomcat" Book
cc4d1b9af9 Merge mozilla-central to b2g-inbound 2015-03-10 14:07:36 +01:00
Thomas Zimmermann
614234540f Bug 1137151: Enable test for non-public ref-counted destructors on gcc 4.8 and later, r=nfroyd 2015-03-10 13:44:02 +01:00
Mike Hommey
ad8f212161 Bug 1139361 - Remove gTLSThreadID*, NS_TLS and mozilla::threads::ID. r=nfroyd 2015-03-10 11:10:58 +09:00
Andrew McCreight
b1093185b2 Bug 1114804 - Make ISupports use the standard deferred finalizer code. r=peterv 2015-03-10 08:35:47 -07:00
Thomas Baquet
0dad1fee4b Bug 1132078 - Remove useless null checks after allocating memory with |new| from xpcom/io. r=nfroyd 2015-03-02 11:59:36 +01:00
Aaron Klotz
05bbe4e32d Bug 1128768: Part 3 - Update BHR to allow for hang annotations; r=vladan
--HG--
extra : rebase_source : ba653b0f314e687c4c7a442291888a538a8c68d1
2015-02-18 23:22:01 -07:00
Aaron Klotz
0f6fdabeee Bug 1128768: Part 2 - Refactor hang annotation code; r=vladan
--HG--
extra : rebase_source : f492ff9a5aa78afd2121afc8fd18c08b6831cdc3
2015-03-09 19:41:24 -06:00
Mike Hommey
364038011c Bug 868814 - Fold mozalloc library into mozglue. r=njn
--HG--
rename : memory/mozalloc/moz.build => memory/mozalloc/staticruntime/moz.build
2015-03-10 10:01:52 +09:00
Nathan Froyd
b6f5257874 Bug 1138123 - remove xpcom/sample/ as a bygone relic; r=bsmedberg 2015-03-09 11:37:21 -04:00
Ehsan Akhgari
82fce30849 Bug 1140762 - Move TestThreads.cpp to gtest and enable it; r=froydnj
--HG--
rename : xpcom/tests/TestThreads.cpp => xpcom/tests/gtest/TestThreads.cpp
2015-03-09 11:10:32 -04:00
Ehsan Akhgari
db5ec9921e Bug 1140760 - Move TestXPIDLString.cpp to gtest and enable it; r=froydnj
--HG--
rename : xpcom/tests/TestXPIDLString.cpp => xpcom/tests/gtest/TestXPIDLString.cpp
2015-03-09 11:10:01 -04:00
Ehsan Akhgari
a98abb5918 Bug 1140771 - Build more XPCOM code in unified mode; r=froydnj 2015-03-09 11:09:35 -04:00
Jed Davis
19355a43d5 Bug 1137007 - Detect namespace and SECCOMP_FILTER_FLAG_TSYNC support in SandboxInfo. r=kang, r=Unfocused
Currently, only user namespace support is detected.  This is targeted at
desktop, where (1) user namespace creation is effectively a prerequisite
for unsharing any other namespace, and (2) any kernel with user
namespace support almost certainly has all the others.

Bonus fix: remove extra copy of sandbox flag key names in about:support;
if JS property iteration order ever ceases to follow creation order, the
table rows could be permuted, but this doesn't really matter.
2015-03-06 13:59:00 -05:00
Carsten "Tomcat" Book
58a19cdf9c Merge mozilla-central to fx-team 2015-03-10 14:05:23 +01:00
Roberto A. Vitillo
5820c9e446 Bug 1133521 - Enable BHR on Beta. r=vladan 2015-03-09 09:58:00 +01:00
Phil Ringnalda
d5d934be28 Merge f-t to m-c, a=merge 2015-03-07 19:38:53 -08:00
Paolo Amadini
f638425f9d Bug 1140435 - Part 2 - Allow JS code to provide an async stack when calling a function. r=bz 2015-03-07 13:30:34 +00:00
Paolo Amadini
6652a00032 Bug 1140435 - Part 1 - Add the asyncCause and asyncCaller properties to nsIStackFrame. r=bz 2015-03-07 13:30:34 +00:00
Carsten "Tomcat" Book
77e821b69f Backed out changeset 34ca2a2e09ea (bug 1133521) for BHR crashes 2015-03-06 16:34:59 +01:00
Roberto A. Vitillo
e1d89cb3d4 Bug 1133521 - Enable BHR on Beta. r=vladan
--HG--
extra : rebase_source : cb1a1f383d581fe5660e5d9ca7f12b55e40aae1b
2015-03-03 06:24:00 -05:00
Boris Zbarsky
e0532c037e Bug 1122238 part 3. Drop all the DOMException-cloning and sanitization gunk we added in bug 1107592 and bug 1107953 and bug 1117242 . r=bholley 2015-03-06 01:08:06 -05:00
Boris Zbarsky
05aaddd360 Bug 1131805 part 1. Remove remaining JS_GetParent and js::GetObjectParent uses in Gecko. r=bholley 2015-03-06 16:33:31 -05:00
Kartikaya Gupta
542b2626aa Bug 1139547 - Fix unsequenced variable modmification/access error. r=botond,bsmedberg 2015-03-05 06:04:03 -05:00
Andrew McCreight
467633fff8 Bug 1138616, part 3 - Add a faster bloatlog-only mode. r=dbaron 2015-03-04 16:13:54 -08:00
Andrew McCreight
2eb20e5c7f Bug 1138616, part 2 - Inline BloatEntry::AddRef and ::Release. r=dbaron 2015-03-04 16:13:54 -08:00
Andrew McCreight
004ce2f71c Bug 1138616, part 1 - Remove nsTraceRefcntStats::mAddRefs and ::mReleases. r=dbaron 2015-03-04 16:13:54 -08:00
Andrew McCreight
115ce41650 Bug 1073594, part 4 - Remove nsTraceRefcntStats::mObjsOutstanding{Total, Squared}. r=dbaron
They are now unused.
2015-03-04 14:07:59 -08:00
Andrew McCreight
077e5aef7b Bug 1073594, part 3 - Remove the mean and stddev for BloatLog object counts. r=dbaron 2015-03-04 14:07:59 -08:00
Andrew McCreight
3bec966a54 Bug 1073594, part 2 - Remove nsTraceRefcntStats::mRefsOutstanding{Total, Squared}. r=dbaron
They are now unused.
2015-03-04 14:07:59 -08:00
Andrew McCreight
530c64e1b0 Bug 1073594, part 1 - Remove mean and stddev for BloatView addrefs and releases. r=dbaron 2015-03-04 14:07:59 -08:00
Boris Zbarsky
8346b9dfaf Bug 928336. Make defining unforgeable properties on objects faster by just copying them from an unforgeable holder object. r=peterv 2015-03-03 21:01:58 -05:00
Alex Henrie
b6bc15079a Bug 1134537 - Delete nsGnomeVFSService. r=nfroyd 2015-02-21 14:49:13 -07:00
Gerald Squelart
4495d81efb Bug 1131445 - variadic NS_NewRunnableMethodWithArgs with storage&passing argument type decorators. r=waldo
--HG--
extra : rebase_source : 3c2104c19bb37624ec32a1ca4c50235e7cefd953
2015-03-01 18:12:00 +01:00
Nicholas Nethercote
237067b8b5 Bug 1138770 - Make memory reporters that have been stashed for testing eligible for unregistration. r=mccr8.
--HG--
extra : rebase_source : 06dcca55a7a47e02d9b43289472c76b810663727
2015-03-02 18:55:42 -08:00
Nathan Froyd
7f88bc2704 Bug 1137464 - add missing include for nsICloneableInputStream.h to nsStreamUtils.cpp; r=bkelly 2015-02-26 16:35:09 -05:00
Nicholas Nethercote
19fa938cf7 Bug 1050035 (part 1, attempt 2) - Lazily allocate PLDHashTable::mEntryStore. r=froydnj.
This makes zero-element hash tables, which are common, smaller, and also avoids
unnecessary malloc/free pairs.

I did some measurements during some basic browsing of a few sites. I found that
35% of all live tables were empty with a few tabs open. And cumulatively, for
the whole session, 45% of tables never had an element added to them.

--HG--
extra : rebase_source : 306bb50f250c09aa03a5e4822f41d6f605d76a1d
2015-02-01 14:56:33 -08:00
Ehsan Akhgari
c611e2a6a8 Backed out 2 changesets (bug 1133939) because of bug 1136453
Backed out changeset 212080d51fb7 (bug 1133939)
Backed out changeset 27de4b553912 (bug 1133939)
2015-02-25 13:26:41 -05:00
Andrew McCreight
e4d15a45bb Bug 1135773 - Initialize QI return values to null in the cycle collector. r=smaug 2015-02-25 09:44:10 -08:00
Ryan VanderMeulen
8979effb6c Merge m-c to inbound. a=merge 2015-02-23 12:33:38 -05:00
ffxbld
26cdf50eea Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2015-02-23 10:22:56 -05:00
Nicholas Nethercote
285d84d141 Bug 1134030 - Add WindowsAddressSpaceReporter. code=njn,dmajor. r=dmajor,njn. 2015-02-20 13:13:16 +11:00
Ben Kelly
9f9db94841 Bug 1133939 P2 Add tests validating nsPipeOutputStream AsyncWait behavior. r=froydnj 2015-02-21 09:51:17 -05:00
Ben Kelly
d3eb781bf1 Bug 1133939 P1 Free buffer resources when an nsPipeInputStream is closed. r=froydnj
* * *
Bug 1133939 P1 interdiff 005 don't delete segments still being written
2015-02-21 09:51:17 -05:00
Boris Zbarsky
9e8395b4c9 Bug 742194 part 1. Add support for throwing uncatchable exceptions to Web IDL bindings. People keep asking for this. r=khuey 2015-02-20 23:58:36 -05:00
Ryan VanderMeulen
34d6e2d69c Backed out changesets 4c2b179b71ae and c96050cdedd5 (bug 1133939) for asserts. 2015-02-20 20:00:19 -05:00
Ben Kelly
1eb9f13e73 Bug 1133939 P2 Add tests validating nsPipeOutputStream AsyncWait behavior. r=froydnj 2015-02-20 18:16:04 -05:00
Ben Kelly
78491bc003 Bug 1133939 P1 Free buffer resources when an nsPipeInputStream is closed. r=froydnj 2015-02-20 18:16:04 -05:00
Tom Tromey
795381b915 Bug 1135081 - Fix typo in nsTString::AssertValidDepedentString. r=froydnj 2015-02-20 08:02:00 -05:00
Alex Henrie
c90cdd2eef Bug 1134537 - Only support GIO in nsLocalFileUnix. r=froydnj 2015-02-19 12:58:58 -07:00
Andrew McCreight
8ad291fb4d Bug 1130142, part 4 - Use reinterpret_cast for PR_SetThreadPrivate. r=froydnj 2015-02-20 09:38:47 -08:00
Andrew McCreight
af29279350 Bug 1130142, part 3 - Use HashNumber method in more places in trace refcounting. r=froydnj
This should not change any behavior.
2015-02-20 09:38:47 -08:00
Andrew McCreight
138983aa4c Bug 1130142, part 2 - Don't explicitly coerce pointer to bool in nsTraceRefCnt. r=froydnj 2015-02-20 09:38:47 -08:00
Andrew McCreight
d0ba9119f7 Bug 1130142, part 1 - Don't truncate pointers to 32-bit values in refcount logging. r=froydnj 2015-02-20 09:38:46 -08:00
Nicholas Nethercote
a423210355 Bug 1132802 - Add more assertions to pldhash.cpp. r=froydnj.
The use of |new| in PL_NewDHashTable() is necessary to avoid the new
assertions in Init() from failing.

--HG--
extra : rebase_source : 63cf962ce146142b72ffa0d6fcd3d8af1ec88bca
2015-02-11 20:24:33 -08:00
Nicholas Nethercote
6bf8ed2521 Bug 1127201 (attempt 2, part 3) - Remove the NS_ABORT_IF_FALSE macro. r=Waldo.
--HG--
extra : rebase_source : b0ff8671df31c6da4a2063ede611b3c554540950
2015-02-04 20:07:09 -08:00
Trevor Saunders
99d941db3c bug 1133075 - add more MOZ_OVERRIDE r=froydnj, waldo, jrmuizel 2015-02-18 17:03:30 -05:00
Frédéric Wang
3bd556b4ad Bug 467729 - Add a PackageKit XPCOM API. r=karlt 2015-02-16 23:59:00 -05:00
Boris Zbarsky
3aff974cb2 Bug 1117242 followup. Rev the nsIStackFrame IID so things get rebuilt correctly. r=bustage 2015-02-13 20:24:20 -05:00
Nick Fitzgerald
ead84e4acf Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz 2015-02-13 09:21:50 -08:00
Mason Chang
e6f06e5cfc Bug 1127151. Part 4: Update TimeStamp::FromSystemTime with windows testing. r=kats 2015-02-13 17:17:28 +08:00
James Cowgill
716e7de1ef Bug 1130434- xpcom: add support for mips n64 abi. r=froydnj 2015-02-06 08:28:00 -05:00
Makoto Kato
9b07a3a0af Bug 1131436 - WindowsDllInterceptor is always failure with --disable-optimize and --enable-debug. r=dmajor 2015-02-12 15:07:57 +09:00
Nicholas Nethercote
8fc460a98a Bug 1131199, part 3 - Update comments relating to PLDHashTableOp::initEntry. r=mccr8.
DONTBUILD because this is a comment-only change.

--HG--
extra : rebase_source : 51501a06196814dbdabbd8b170ec41ccbf6ed2d0
2015-02-11 14:24:47 -08:00
Nicholas Nethercote
fa624bca8a Bug 1131901 (part 2) - Make CCGraphBuilder::AddNode() infallible. r=mccr8.
--HG--
extra : rebase_source : cfbef5e7c783c1abb1e9bb69dcc5ef14d3c96369
2015-02-02 23:58:42 -08:00
Nicholas Nethercote
3a7b0a9f57 Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Ben Kelly
5c46ccc050 Bug 1100398 P5 Provide NS_CloneInputStream() factory method in nsStreamUtils.h. r=froydnj 2015-02-10 23:55:43 -05:00
Ben Kelly
39a8291465 Bug 1100398 P4 Make nsPipeInputStream cloneable. r=froydnj 2015-02-10 23:55:43 -05:00
Ben Kelly
a3fc23c873 Bug 1100398 P3 Make nsStorageStream's input streams cloneable. r=froydnj 2015-02-10 23:55:43 -05:00
Ben Kelly
a7631559d4 Bug 1100398 P2 Make nsStringInputStream cloneable. r=froydnj 2015-02-10 23:55:43 -05:00
Ben Kelly
3e70bce6b1 Bug 1100398 P1 Add the nsICloneableInputStream interface. r=froydnj 2015-02-10 23:55:43 -05:00
Ben Kelly
b4a93b9b3d Bug 1100398 P0 Break out helper routines to support gtests for more stream types. r=froydnj 2015-02-10 23:55:43 -05:00
Nathan Froyd
87e4b4c13f Bug 1036515 - narrow the scope of unlocking mMonitor in nsTimerImpl::PostTimerEvents; r=bsmedberg 2015-02-06 16:19:36 -05:00
Andrew McCreight
31ba9aaed9 Bug 1131199, part 2 - Make PLDHashtInitEntry infallible. r=froydnj
Also, drop the unused table argument.
2015-02-11 09:46:40 -08:00
Nicholas Nethercote
63e3218e4c Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Bobby Holley
fa0e01bfea Bug 1129877 - Add a templatized move constructor for nsRefPtr. v1 r=froydnj 2015-02-10 13:45:02 -08:00
L. David Baron
5a1bc25cf4 Bug 680547 bustage fix: Make #pragmas be #ifndef __clang__. No review. 2015-02-10 16:24:54 +11:00
L. David Baron
e5f1b47ba8 Bug 680547 - Compile Linux 64-bit NS_InvokeByIndex with -mno-avx to allow compiling with -march=native on new hardware, or similar -march flags. r=froydnj
As explained in bug 1111355, having avx enabled appears to change the
alignment behavior of alloca (apparently adding an extra 16 bytes) of
padding/alignment (and using 32-byte alignment instead of 16-byte).  The
suggestion of using __bultin_alloca_with_align in bug 1111355 didn't fix
the problem, so this seems to be the best available workaround, given
that this code, which should perhaps better be written in assembly, is
written in C++.

Interestingly, this is NOT fixed by #pragma GCC target ("arch=x86-64").
(I determined the (undocumented) name for the default -march value on
x86_64 from the gcc source code (gcc/config/i386/i386.c, function
ix86_option_override_internal, code that sets opts->x_ix86_arch_string .)
I confirmed that this sets the same macros based on the empty diff
between the output of 'gcc -E -dM -x c++ /dev/null' and 'gcc -E -dM -x
c++ -march=x86-64 /dev/null', which was not an empty diff for other
-march values (e.g., k8).)

I confirmed that the push_options and pop_options actually work by
putting the push/pop pair around a different (earlier) function, and
testing that this did not fix the bug (with the pop_options before
NS_InvokeByIndex).

See the gcc documentation at:
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Function-Specific-Option-Pragmas.html
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Function-Attributes.html
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/i386-and-x86-64-Options.html

--HG--
extra : transplant_source : %DA%7CJ4H%DE%80%15%84%0D%116%85Q%9A%F9%2C%D1v%16
2015-02-10 16:04:46 +11:00
Nicholas Nethercote
242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Andrew McCreight
c11d7db0a4 Back out Bug 1127201 (part 3) for various problems. 2015-02-06 15:04:00 -08:00
Andrew McCreight
aec1aac3c6 Bug 1125005 - Change the reentrance assertion in IncrementalFinalizeRunnable to a warning. r=smaug 2015-02-06 09:54:21 -08:00
Dhi Aurrahman
5b8f79fc23 Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz 2015-02-04 18:46:26 +07:00
Wes Kocher
834e2d3042 Merge inbound to m-c a=merge CLOSED TREE 2015-02-05 16:55:01 -08:00
Dave Townsend
425a83de72 Bug 1083281: Use flags to determine which chrome and about URIs are loaded in the content process. r=mconley, r=bsmedberg, r=jduell, r=mratcliffe
--HG--
extra : rebase_source : beda0088e7715eeb41525b0123f308068745bd80
2015-02-05 08:09:15 -08:00