Commit Graph
43 Commits
Author SHA1 Message Date
Birunthan Mohanathas ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Cervantes Yu 0b11cb2e5b Bug 1168337: Kill the processes on startup of the Nuwa test case fix the abort in the preallocated process. r=khuey 2015-10-13 10:58:43 +08:00
Cervantes Yu fcfcd12422 Bug 1155547, Part 2: Create PNuwa protocol (managed by PBackground) for forking content processes. r=khuey
This allows us to send a sync fork request to the Nuwa process when we need one but there is no
spare process available. After an app is launched, the request to fork a spare process is still
handled asynchronously.
2015-07-31 15:25:27 +08:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Ting-Yu Chou 17cb0f45a8 Bug 1050122 - Part 2: Disable preallocate when proc loader is not initialized. r=khuey 2014-11-01 13:28:33 +08:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Cervantes Yu d3b1aa5c05 Backed out 2 changesets (bug 1138620)
Backed out changeset e60b4b01c05d (bug 1138620)
Backed out changeset 52d49dd25d6d (bug 1138620)
2015-04-24 15:05:44 +08:00
Cervantes Yu 8d7bb1a788 Bug 1138620 - Part 2: Test case for NS_NewUnmonitoredThread(). r=khuey 2015-04-21 18:23:48 +08:00
Cervantes Yu b887dc896c Bug 1142229, part 1 - Clean up and refactor test cases for the Nuwa process. r=mrbkap 2015-04-09 15:26:49 +08:00
Ehsan Akhgari ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari d7bea24a02 Follow-up to bug 1073081 - Fix the non-unified build bustage 2014-12-13 10:26:22 -05:00
Botond Ballo 9f0efaaf72 Bug 1073081 - Fix -Wreorder warnings. r=ehsan 2014-11-26 17:57:40 -05:00
Botond Ballo 1500be66e4 Bug 1073081 - Fix -Wunused-result, -Wunused-variable, and -Wunused-but-set-variable warnings. r=ehsan 2014-11-26 18:13:49 -05:00
Botond Ballo 268bd4ba7a Bug 1073081 - Fix -Wdelete-non-virtual-dtor warnings by marking some classes as MOZ_FINAL. r=ehsan 2014-11-24 18:38:23 -05:00
Ryan VanderMeulen 7f5280619c Backed out changesets bc3b048b416d and 773b27cd166b (bug 1050122) for regression B2G debug test runtimes dramatically. 2014-11-03 12:46:43 -05:00
Ting-Yu Chou f58052f6dd Bug 1050122 - Part 2 - Disable preallocate when proc loader is not initialized. r=khuey 2014-11-01 13:28:33 +08:00
Ting-Yu Chou 0032f2d653 Bug 1057065 - Remove obsolete code causes extra preallocated process to complement the patch of bug 1033618. r=khuey 2014-08-26 10:22:21 +08:00
Bobby Holley b2b763cb29 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen df43fcf12d Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley 10dec58cfc Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Benoit Jacob 7bbd89e2ca Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Patrick Wang (Chih-Kai Wang) c31850dd2b Bug 1009398: Close preallocated process when Nuwa is dead. r=khuey 2014-05-15 11:04:32 +08:00
Cervantes Yu 0cd73130cd Bug 988689: redirect pref updates to the frozen Nuwa process to its forked child. r=khuey 2014-05-09 19:30:42 +08:00
Birunthan Mohanathas eeb9aaaa94 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
Cervantes Yu 5b18750dce Bug 992752: Don't wait for the delayed prellocated process when launching an app. r=khuey 2014-04-07 17:48:52 +08:00
Cervantes Yu d21c8fc338 Bug 977359 Part 3: Remove runtime checks for Nuwa deadlock in debug build. r=khuey 2014-04-15 21:27:56 +08:00
Fabrice Desré 0921e7ae5e Bug 950266 - Re-enable the Nuwa process on B2G by default r=me 2014-01-14 16:00:25 -08:00
Ryan VanderMeulen 3bcdc8de82 Backed out changeset ca2ab9f4ac9c (bug 950266) for suspicion of causing bug 966582. 2014-02-01 14:39:56 -05:00
Fabrice Desré eeb645fb4f Bug 950266 - Re-enable the Nuwa process on B2G by default r=me 2014-01-14 16:00:25 -08:00
Wes Kocher 0e9f80fa22 Backed out 2 changesets (bug 950266) for making test_webapps_actor.html permaorange and mochitest-9's log permaoverflowing
Backed out changeset e3e75f44864b (bug 950266)
Backed out changeset 2963f15842fc (bug 950266)
2014-01-30 17:24:11 -08:00
Fabrice Desré f9540729a5 Bug 950266 - Re-enable the Nuwa process on B2G by default r=me 2014-01-14 16:00:25 -08:00
Kai-Zhen Li 6cd54243c9 Bug 952693 - Set priority of NUWA to hal::PROCESS_PRIORITY_MASTER. r=khuey 2013-12-22 17:21:02 +08:00
Ehsan Akhgari 68bfe70f09 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
Cervantes Yu 900e9fb610 Bug 938470 - Part 1: Make nsFrameLoader async in loading a remote iframe to always use Nuwa-spawned app processes. r=smaug 2013-11-19 19:03:30 +08:00
Patrick Wang 4a8edac120 Bug 948545: Nuwa process shouldn't exist if dom.ipc.processPrelaunch.enabled is false r=khuey 2013-12-13 16:38:08 +08:00
Patrick Wang 339ce649cf Bug 930282: Part 3: Don't fork after xpcom shutdown. r=khuey 2013-12-09 22:42:48 +08:00
Patrick Wang 088a58256c Bug 922465: Automated test for nuwa process. r=khuey 2013-10-24 21:49:49 +08:00
Phil Ringnalda 9272b5924a Backed out 5 changesets (bug 944665, bug 922465, bug 930282) for b2g xpcshell crashes
CLOSED TREE

Backed out changeset c4f970dd2a4f (bug 930282)
Backed out changeset 625f5303fc68 (bug 930282)
Backed out changeset bf8e90edd152 (bug 922465)
Backed out changeset a21b57c78253 (bug 944665)
Backed out changeset 9275a2efc9e3 (bug 944665)
2013-12-08 15:32:15 -08:00
Patrick Wang 25a523f2fc Bug 922465: Test Nuwa creation. r=khuey 2013-12-07 10:31:04 +08:00
Patrick Wang 007744637d Bug 928995: Move Nuwa to PreallocatedProcessManager. r=bent 2013-11-22 11:25:34 +08:00
Ehsan Akhgari 9ad38c5057 Bug 919505 - Minimize the #includes in dom/ipc; r=jst 2013-09-23 17:30:40 -04:00
Justin Lebar f1b1f631b1 Bug 844323 - Part 1: Move process preallocation logic out of ContentParent and into a new file, PreallocatedProcessManager. r=bent
Also make the PreallocatedProcessManager respond to pref changes.  This allows us to write a test involving the preallocated process.  Making this change was the main motivation for this patch; I moved the logic out of ContentParent because with the pref-watching code it was becoming unweildy.
2013-04-25 20:53:26 -04:00