Commit Graph

2749 Commits

Author SHA1 Message Date
Emanuel Hoogeveen
0d92fda72d Bug 1084651 - Part 5: Simplify Cycle Collector logic now that SliceBudget makes more sense. r=mccr8 2014-11-06 10:14:00 +01:00
Emanuel Hoogeveen
2efb3493a7 Bug 1084651 - Part 2: Clean up SliceBudget and require explicitly choosing between TimeBudget and WorkBudget. r=wmccloskey r=mccr8 2014-10-22 14:13:00 +02:00
Jed Davis
59573e5f85 Bug 1077057 - Expose Linux sandboxing information to JS via nsSystemInfo. r=kang r=froydnj
This adds "hasSeccompBPF" for seccomp-bpf support; other "has" keys
will be added in the future (e.g., user namespaces).

This also adds "canSandboxContent" and "canSandboxMedia", which are
absent if the corresponding type of sandboxing isn't enabled at build
type (or is disabled with environment variables), and otherwise present
as a boolean indicating whether that type of sandboxing is supported.
Currently this is always the same as hasSeccompBPF, but that could change
in the future.

Some changes have been made to the "mozilla/Sandbox.h" interface to
support this; the idea is that the MOZ_DISABLE_*_SANDBOX environment
variables should be equivalent to disabling MOZ_*_SANDBOX at build time.
2014-11-06 13:11:00 +01:00
Carsten "Tomcat" Book
13de0f42c9 Backed out 7 changesets (bug 1084651) for ASAN Bustage on a CLOSED TREE
Backed out changeset dd2b3e78b425 (bug 1084651)
Backed out changeset 2711fbd91819 (bug 1084651)
Backed out changeset 59a163addd79 (bug 1084651)
Backed out changeset d36f6dbbf925 (bug 1084651)
Backed out changeset 78102b62a4a0 (bug 1084651)
Backed out changeset 06387a2343a0 (bug 1084651)
Backed out changeset 2f8e7c39573e (bug 1084651)
2014-11-05 15:20:25 +01:00
Emanuel Hoogeveen
dd0cdda357 Bug 1084651 - Part 5: Simplify Cycle Collector logic now that SliceBudget makes more sense. r=mccr8 2014-10-21 11:54:00 +02:00
Emanuel Hoogeveen
f6218097c0 Bug 1084651 - Part 2: Clean up SliceBudget and require explicitly choosing between TimeBudget and WorkBudget. r=wmccloskey r=mccr8 2014-10-22 14:13:00 +02:00
Steven Michaud
3c5c8c63c4 Bug 1091801 - fix inline assembly constraints; r=froydnj, a=Tomcat 2014-10-29 08:47:18 -04:00
Anuj Agarwal
d8d543d7b2 Bug 907327 - Added ErrorNames.h and ErrorNames.cpp. r=nfroyd 2014-10-20 13:09:00 +02:00
Carsten "Tomcat" Book
0c3d2acf16 Backed out changeset 3333c226a1d8 (bug 792989) for wrong commit number 2014-10-30 14:39:15 +01:00
Anuj Agarwal
78f9e5301b Bug 792989 - Added ErrorNames.h and ErrorNames.cpp. r=nfroyd 2014-10-20 13:09:00 +02:00
Steven Michaud
0e5350ab35 Bug 997908 - crash in ReleaseSliceNow(unsigned int, void*) accessing memory at 0x5a5a5a5a5a5a5a5a, test patch. r=nfroyd 2014-10-29 21:50:29 -05:00
Paolo Amadini
e1e4b620e8 Bug 1013625 - Process Promise resolution runnables outside of main event queue. r=bz,khuey 2014-10-28 12:08:19 +00:00
Panos Astithas
785bd0838e Bug 1086936 part 2 - Add a flag to nsIAppStartup::quit that restarts the browser without using the same profile and use it for the Aurora UI switch. r=bsmedberg 2014-10-27 21:46:56 +02:00
Andrew McCreight
526df61329 Bug 1087799, part 3 - Do not include any JS things in the list of white nodes. r=smaug
Root() does not actually root JS things, so if some other class's Unlink() method ends
up calling the GC, whiteNodes will end up containing dead pointers. (This is safe right
now because the Unlink and Unroot methods do not do anything to JS things.) It is less
error prone to simply never store those pointers.

Also, add some asserts to enforce that we never call any of the white-object methods
for JS things.
2014-10-24 15:06:56 -07:00
Andrew McCreight
04f4e49d61 Bug 1087799, part 2 - Rename count to numWhiteNodes in nsCycleCollector::CollectWhite(). r=smaug 2014-10-24 15:06:56 -07:00
Andrew McCreight
14343f4a96 Bug 1087799, part 1 - Loosen the invariant in nsCycleCollector::FinishAnyCurrentCollection(). r=smaug
If an Unlink() method ends up running JS, it can cause a GC, which will make us reenter the CC,
which will not do anything because we're already in a CC. Therefore, FinishAnyCurrentCollection()
won't finish the CC. This is safe because the CC only touches things it actually holds alive via
the Root() method.
2014-10-24 15:06:55 -07:00
Nicholas Nethercote
e3513fb564 Bug 1087128 - Remove some "Leaky" remnants. r=glandium.
--HG--
extra : rebase_source : b73df80267960f44edb768ff1e2f14ab8134d308
2014-10-21 19:13:05 -07:00
Andrew McCreight
cc506c4751 Bug 727965 - Trigger CC_WAITING GCs based on number of freed JS objects and zones. r=smaug 2014-10-20 10:07:52 -07:00
Nicholas Nethercote
11f776f668 Bug 1044709 - Improve the comment describing the memory report file format. r=mccr8.
--HG--
extra : rebase_source : 41738a5a898c67f6dd4a41cbf0d877d85f3f4feb
2014-09-28 18:35:14 -07:00
Nicholas Nethercote
09a193e478 Bug 1044709 - DMD: emit JSON output and use Python for post-processing. r=mccr8.
--HG--
extra : rebase_source : ddc94d9be1ee0acc6dda30540defd5f40db0adcb
2014-09-02 20:34:58 -07:00
Nicholas Nethercote
94adb30f77 Bug 1062709 (part 2, attempt 2) - Clean up stack printing and fixing. r=dbaron.
--HG--
extra : rebase_source : 626fd23a14ec90cfc9807c3d555169ec6463d19d
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
2eb56008e2 Bug 1062709 (part 1, attempt 2) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
--HG--
extra : rebase_source : 4f7060a9ae0bed180899651c50e8ea8857e72d63
2014-09-10 21:47:01 -07:00
Ed Morley
2d0f9579b5 Backed out changeset a0b82c954206 (bug 1062709) for Windows mochitest 5 hangs 2014-10-03 15:06:16 +01:00
Ed Morley
9e223d8a19 Backed out changeset 7a1b7d7eba12 (bug 1062709) 2014-10-03 15:05:26 +01:00
Nicholas Nethercote
5a257b83f9 Bug 1062709 (part 2) - Clean up stack printing and fixing. r=dbaron.
--HG--
extra : rebase_source : 18158d4474cb8826813a3866eba57b710e14db99
2014-09-01 22:56:05 -07:00
Nicholas Nethercote
c9c64de53c Bug 1062709 (part 1) - Add a frame number argument to NS_WalkStackCallback. r=dbaron.
--HG--
extra : rebase_source : 0f9b2d6310433ed56f5552706fcf2a96571aee25
2014-09-10 21:47:01 -07:00
Cervantes Yu
f306f96f76 Bug 1051633: Make sure magic file descriptors in the content process will not be taken for other uses. r=khuey
--HG--
extra : rebase_source : 5e2dedb855dd5e0e6637d6f42c80c69df8081971
2014-09-30 00:00:00 +08:00
Anuj Agarwal
2494ef253f Bug 1071100 - Moved nsRefPtr from nsAutoPtr.h to a new nsRefPtr.h r=froydnj 2014-09-26 10:53:47 -07:00
Carsten "Tomcat" Book
293a55afc8 Backed out changeset 1e25cd3e8219 (bug 1051633) for B2G ICS Emulator Opt m4 test failures 2014-09-24 11:28:37 +02:00
Cervantes Yu
5d34df52be Bug 1051633: Make sure magic file descriptors in the content process will not be taken for other uses. r=khuey
--HG--
extra : rebase_source : 2c9baf6ac87744d7049c90284990c0aa48e0f058
2014-08-15 17:19:05 +08:00
Eric Rahm
96463c70e7 Bug 1060171 - Part 3: Map log level to logcat level in ConsoleService. r=dhylands 2014-09-22 15:33:36 -07:00
Eric Rahm
83245fc00d Bug 1060171 - Part 1: Add log levels to nsIConsoleMessage. r=froydnj 2014-09-22 15:32:21 -07:00
Ryan VanderMeulen
cae5eb937c Merge m-c to inbound. a=merge 2014-09-22 15:51:51 -04:00
Eric Rahm
94ca85eb44 Bug 1069490 - Part 2: Add columnNumber to nsIStackFrame and set in JSStackFrame. r=bz 2014-09-22 11:28:31 -07:00
Vlatko Markovic
8818f4947f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 1. r=dkeeler,rlb 2014-09-22 07:58:59 -07:00
Nick Thomas
8a362441f2 Bug 1063237, include android sdk version in FirefoxOS update requests, r=dhylands 2014-09-22 22:08:01 +12:00
Nicholas Nethercote
eb4d250262 Bug 1067711 (attempt 2) - Fix an assertion failure in the System memory reporter. r=erahm. 2014-09-17 18:23:33 -07:00
Carsten "Tomcat" Book
186ce26b02 Backed out changeset ba6a9e60d2c6 (bug 1067711) for XPCshell Test failures 2014-09-18 11:50:34 +02:00
Nicholas Nethercote
4a7eef6b52 Bug 1067711 - Fix an assertion failure in the System memory reporter. r=erahm.
--HG--
extra : rebase_source : 06fa4b0d706414901ce2475e987067d5cb4f0f6f
2014-09-17 18:23:33 -07:00
Nicholas Nethercote
273d7cc068 Bug 1067699 (part 2) - Add mfbt/JSONWriter.h and use it for memory reporting. r=froydnj.
--HG--
extra : rebase_source : 7eb21c4c20c0434b3b236d1c53cbef9cb6a4759c
2014-09-14 23:36:18 -07:00
Bill McCloskey
4735655406 Bug 1049275 - Don't use IPC for crash reporting after NS_ABORT (r=bsmedberg) 2014-09-12 11:44:38 -07:00
Nicholas Nethercote
28935b35cb Bug 1065834 - Remove long-busted Solaris stack-walking code. r=froydnj. 2014-09-10 19:46:54 -07:00
Ryan VanderMeulen
d0a9c46918 Backed out changeset 317c684efd2d (bug 997908) for mochitest-e10s leaks. 2014-09-19 13:43:02 -04:00
Steven Michaud
360e6d185c Bug 997908 - Test patch to make crash stacks better. r=mccr8 2014-09-19 11:59:40 -05:00
Nicholas Nethercote
0b66ceae91 Bug 1065258 (part 8) - Rename TempDirMemoryFinishCallback. r=jld.
--HG--
extra : rebase_source : c478218da5d45e091156aa4dc9d64514f71d403d
2014-09-10 00:41:50 -07:00
Nicholas Nethercote
03c5fb0c7d Bug 1065258 (part 7) - Move DumpMemoryReportsToNamedFile earlier. r=jld.
--HG--
extra : rebase_source : b9f6289c6ed0010997d1e21fd461a802d1895cf0
2014-09-10 00:40:36 -07:00
Nicholas Nethercote
90e73486ef Bug 1065258 (part 6) - Factor out code shared by DumpMemoryReportsToNamedFile() and DumpMemoryInfoToTempDir(). r=jld.
--HG--
extra : rebase_source : 2f4c9f6da6202169ec480dcbf52047308c25b840
2014-09-10 00:40:10 -07:00
Nicholas Nethercote
fcdaede7d4 Bug 1065258 (part 5) - Make TempDirMemoryFinishCallback a nsIFinishDumpingCallback object. r=jld.
--HG--
extra : rebase_source : 0a16d0a6193c3de9ae7cc1c68991dbda24171dc7
2014-09-10 00:34:47 -07:00
Nicholas Nethercote
70c26f1e8b Bug 1065258 (part 4) - Move FinishReportingCallback earlier. r=jld.
--HG--
extra : rebase_source : e9c5cc0bf8297cfcef9fae1f0b7da5d03afc659c
2014-09-10 00:32:58 -07:00
Nicholas Nethercote
6108d5a9bf Bug 1065258 (part 3) - Remove TempDirMemoryFinishCallback::mIdentifier, which is dead. r=jld.
--HG--
extra : rebase_source : 7db3562208f78be05b855efcbee7f6182df8bf42
2014-09-10 00:31:40 -07:00