summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2019-01-16 06:47:35 (GMT)
committerBen Gamari <ben@smart-cactus.org>2019-01-16 19:19:44 (GMT)
commit6aaa0655a721605740f23e49c5b4bf6165bfe865 (patch)
tree64e8332404d495fcb1da8b51e5bea76913b7a232
parent8765c1e6e6aca590a2fc252c64846890bf87f387 (diff)
downloadghc-6aaa0655a721605740f23e49c5b4bf6165bfe865.zip
ghc-6aaa0655a721605740f23e49c5b4bf6165bfe865.tar.gz
ghc-6aaa0655a721605740f23e49c5b4bf6165bfe865.tar.bz2
Documentation for StgRetFun
-rw-r--r--includes/rts/storage/Closures.h3
-rw-r--r--utils/genapply/Main.hs2
2 files changed, 4 insertions, 1 deletions
diff --git a/includes/rts/storage/Closures.h b/includes/rts/storage/Closures.h
index 7db67c7..3e90306 100644
--- a/includes/rts/storage/Closures.h
+++ b/includes/rts/storage/Closures.h
@@ -260,6 +260,9 @@ typedef struct {
* info table describes the pointerhood of the arguments).
*
* The stack frame size is also cached in the frame for convenience.
+ *
+ * The only RET_FUN is stg_gc_fun, which is created by __stg_gc_fun,
+ * both in HeapStackCheck.cmm.
*/
typedef struct {
const StgInfoTable* info;
diff --git a/utils/genapply/Main.hs b/utils/genapply/Main.hs
index 71b84fd..7038dc5 100644
--- a/utils/genapply/Main.hs
+++ b/utils/genapply/Main.hs
@@ -903,7 +903,7 @@ genStackApply regstatus args =
--
-- These code fragments are used to save registers on the stack at a heap
-- check failure in the entry code for a function. We also have to save R1
--- and the return address (stg_gc_fun_info) on the stack. See stg_gc_fun_gen
+-- and the return address (stg_gc_fun_info) on the stack. See __stg_gc_fun
-- in HeapStackCheck.cmm for more details.
mkStackSaveEntryLabel :: [ArgRep] -> Doc