summaryrefslogtreecommitdiff
path: root/rts/sm/MarkWeak.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/sm/MarkWeak.c')
-rw-r--r--rts/sm/MarkWeak.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rts/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index 9a077b3d14..248bf632a2 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;
}
}