Bug 1523969 part 16 - Move method definition inline comments to new line in 'memory/'. r=glandium
authorRyan Hunt <rhunt@eqrion.net>
Mon, 25 Feb 2019 16:10:15 -0600
changeset 519779 53d0d3dcfe6efa01fe4f3b0877f06b69f5d4bb97
parent 519778 e338646fe5515d51f46b856b5815ff9dd5af7baa
child 519780 e850de3b6ac3befb988c4360690269b5a2d8305b
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1523969
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1523969 part 16 - Move method definition inline comments to new line in 'memory/'. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D21117
memory/replace/dmd/DMD.cpp
--- a/memory/replace/dmd/DMD.cpp
+++ b/memory/replace/dmd/DMD.cpp
@@ -212,17 +212,18 @@ void DMDFuncs::StatusMsg(const char* aFm
   // The +64 is easily enough for the "DMD[<pid>] " prefix and the NUL.
   char* fmt = (char*)InfallibleAllocPolicy::malloc_(strlen(aFmt) + 64);
   sprintf(fmt, "DMD[%d] %s", getpid(), aFmt);
   vfprintf(stderr, fmt, aAp);
   InfallibleAllocPolicy::free_(fmt);
 #endif
 }
 
-/* static */ void InfallibleAllocPolicy::ExitOnFailure(const void* aP) {
+/* static */
+void InfallibleAllocPolicy::ExitOnFailure(const void* aP) {
   if (!aP) {
     MOZ_CRASH("DMD out of memory; aborting");
   }
 }
 
 static double Percent(size_t part, size_t whole) {
   return (whole == 0) ? 0 : 100 * (double)part / whole;
 }
@@ -485,17 +486,18 @@ class Thread {
   bool UnblockIntercepts() {
     MOZ_ASSERT(mBlockIntercepts);
     return mBlockIntercepts = false;
   }
 
   bool InterceptsAreBlocked() const { return mBlockIntercepts; }
 };
 
-/* static */ Thread* Thread::Fetch() {
+/* static */
+Thread* Thread::Fetch() {
   Thread* t = static_cast<Thread*>(DMD_GET_TLS_DATA(gTlsIndex));
 
   if (MOZ_UNLIKELY(!t)) {
     // This memory is never freed, even if the thread dies.  It's a leak, but
     // only a tiny one.
     t = InfallibleAllocPolicy::new_<Thread>();
     DMD_SET_TLS_DATA(gTlsIndex, t);
   }