[commit: ghc] master: s/traverse_weak_ptr_list/traverseWeakPtrList in comments [skip ci] (98b0c3f)

git at git.haskell.org git at git.haskell.org
Sat Apr 21 11:26:58 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/98b0c3fd63fd052239259f985df45a4a01192914/ghc

>---------------------------------------------------------------

commit 98b0c3fd63fd052239259f985df45a4a01192914
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date:   Sat Apr 21 14:26:34 2018 +0300

    s/traverse_weak_ptr_list/traverseWeakPtrList in comments [skip ci]


>---------------------------------------------------------------

98b0c3fd63fd052239259f985df45a4a01192914
 rts/sm/MarkWeak.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/rts/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index 9a077b3d14..248bf63 100644
--- a/rts/sm/MarkWeak.c
+++ b/rts/sm/MarkWeak.c
@@ -32,11 +32,11 @@
 /* -----------------------------------------------------------------------------
    Weak Pointers
 
-   traverse_weak_ptr_list is called possibly many times during garbage
+   traverseWeakPtrList is called possibly many times during garbage
    collection.  It returns a flag indicating whether it did any work
    (i.e. called evacuate on any live pointers).
 
-   Invariant: traverse_weak_ptr_list is called when the heap is in an
+   Invariant: traverseWeakPtrList is called when the heap is in an
    idempotent state.  That means that there are no pending
    evacuate/scavenge operations.  This invariant helps the weak
    pointer code decide which weak pointers are dead - if there are no
@@ -60,7 +60,7 @@
 
      Now, we discover which *threads* are still alive.  Pointers to
      threads from the all_threads and main thread lists are the
-     weakest of all: a pointers from the finalizer of a dead weak
+     weakest of all: a pointer from the finalizer of a dead weak
      pointer can keep a thread alive.  Any threads found to be unreachable
      are evacuated and placed on the resurrected_threads list so we
      can send them a signal later.
@@ -72,7 +72,7 @@
    -------------------------------------------------------------------------- */
 
 /* Which stage of processing various kinds of weak pointer are we at?
- * (see traverse_weak_ptr_list() below for discussion).
+ * (see traverseWeakPtrList() below for discussion).
  */
 typedef enum { WeakPtrs, WeakThreads, WeakDone } WeakStage;
 static WeakStage weak_stage;
@@ -185,7 +185,7 @@ traverseWeakPtrList(void)
   }
 
   default:
-      barf("traverse_weak_ptr_list");
+      barf("traverseWeakPtrList");
       return true;
   }
 }



More information about the ghc-commits mailing list