From 7bca0e545998f737c6f6eff08b2c2c38d7558976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Mon, 8 Jul 2019 16:01:15 +0200 Subject: rts: TraverseHeap: Update some comments data_out was renamed to child_data at some point --- rts/TraverseHeap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rts/TraverseHeap.c b/rts/TraverseHeap.c index 20fecfb816..55334e4104 100644 --- a/rts/TraverseHeap.c +++ b/rts/TraverseHeap.c @@ -708,10 +708,10 @@ callReturnAndPopStackElement(traverseState *ts) * If the unprocessed object was stored in the stack (posTypeFresh), the * this object is returned as-is. Otherwise Test if the topmost stack * element indicates that more objects are left, - * and if so, retrieve the first object and store its pointer to *c. Also, + * and if so, retrieve the next object and store its pointer to *c. Also, * set *cp and *data appropriately, both of which are stored in the stack - * element. The topmost stack element then is overwritten so as for it to now - * denote the next object. + * element. The topmost stack element is then overwritten so it denotes the + * next object. * * If the topmost stack element indicates no more objects are left, pop * off the stack element until either an object can be retrieved or @@ -1211,7 +1211,7 @@ traverseWorkStack(traverseState *ts, visitClosure_cb visit_cb) // c = Current closure (possibly tagged) // cp = Current closure's Parent (NOT tagged) // data = current closures' associated data (NOT tagged) - // data_out = data to associate with current closure's children + // child_data = data to associate with current closure's children loop: traversePop(ts, &c, &cp, &data, &sep); -- cgit v1.2.1