[Git][ghc/ghc][wip/decode_cloned_stack] Improve comments

Sven Tennie (@supersven) gitlab at gitlab.haskell.org
Fri May 5 19:52:40 UTC 2023



Sven Tennie pushed to branch wip/decode_cloned_stack at Glasgow Haskell Compiler / GHC


Commits:
7cd3dda6 by Ben Gamari at 2023-05-05T19:52:38+00:00
Improve comments
- - - - -


1 changed file:

- libraries/ghc-heap/GHC/Exts/Heap/Closures.hs


Changes:

=====================================
libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
=====================================
@@ -365,15 +365,15 @@ data GenClosure b
 
     -- | A primitive word from a bitmap encoded stack frame payload
     --
-    -- The type itself cannot be restored (i.e. it might also represent a byte
-    -- or an int).
+    -- The type itself cannot be restored (i.e. it might represent a Word8#
+    -- or an Int#).
   |  UnknownTypeWordSizedPrimitive
         { wordVal :: !Word }
   deriving (Show, Generic, Functor, Foldable, Traversable)
 
 -- | A decoded @StgStack@ with `StackFrame`s
 --
--- This is separate from it's `Closure` incarnation, as unification would
+-- This is separate from its `Closure` incarnation, as unification would
 -- require two kinds of boxes for bitmap encoded stack content: One for
 -- primitives and one for closures. This turned out to be a nightmare with lots
 -- of pattern matches and leaking data structures to enable access to primitives



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7cd3dda60f9593804a7770609f39a4983b8ca298

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7cd3dda60f9593804a7770609f39a4983b8ca298
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230505/ca421db3/attachment-0001.html>


More information about the ghc-commits mailing list