[commit: ghc] master: rts: Address AP_STACK comment suggestion from Simon (555e5cc)

git at git.haskell.org git at git.haskell.org
Wed Jul 5 18:49:30 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/555e5cc48b6c2608ae8d4bd3b2a5bd2ef63236ab/ghc

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

commit 555e5cc48b6c2608ae8d4bd3b2a5bd2ef63236ab
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jul 4 12:45:30 2017 -0400

    rts: Address AP_STACK comment suggestion from Simon


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

555e5cc48b6c2608ae8d4bd3b2a5bd2ef63236ab
 rts/Apply.cmm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rts/Apply.cmm b/rts/Apply.cmm
index a0b498a..36a9859 100644
--- a/rts/Apply.cmm
+++ b/rts/Apply.cmm
@@ -506,9 +506,9 @@ Here we have two threads (TSO 1 and TSO 2) which are in currently pausing (e.g.
 in threadPaused). Since they are pausing, their stacks are headed by a pointer
 to the continuation code which we will run on resumption (go and fun,
 respectively). We also see that there are two thunks on the heap: THUNK A and
-THUNK B where THUNK A is reachable from THUNK B (for instance, as an argument or
-free variable). We see that thread 1 has THUNK A under evaluation, and both
-threads have THUNK B under evaluation.
+THUNK B where THUNK B depends upon THUNK A (as in, evaluation of B will force
+A). We see that thread 1 has THUNK A under evaluation, and both threads have
+THUNK B under evaluation.
 
 As each thread enters threadPaused, threadPaused will walk its stack looking for
 duplicate computation (see Note [suspend duplicate work], although there is some



More information about the ghc-commits mailing list