[Git][ghc/ghc][wip/ghc-debug] Rename size to stack_size to use dedicated type
Sven Tennie
gitlab at gitlab.haskell.org
Mon Jun 1 17:28:15 UTC 2020
Sven Tennie pushed to branch wip/ghc-debug at Glasgow Haskell Compiler / GHC
Commits:
9983f83a by Sven Tennie at 2020-06-01T19:28:05+02:00
Rename size to stack_size to use dedicated type
size is already defined as a HalfWord in GenClosure, which is
only equivalent to Word32 on 64bit architectures.
- - - - -
2 changed files:
- libraries/ghc-heap/GHC/Exts/Heap.hs
- libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
Changes:
=====================================
libraries/ghc-heap/GHC/Exts/Heap.hs
=====================================
@@ -341,7 +341,7 @@ getClosureX get_closure_raw x = do
pure $ StackClosure
{ info = itbl
- , size = FFIClosures.stack_size fields
+ , stack_size = FFIClosures.stack_size fields
, stack_dirty = FFIClosures.stack_dirty fields
, stackPointer = (pts !! 0)
, stack = FFIClosures.stack fields
=====================================
libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
=====================================
@@ -285,7 +285,7 @@ data GenClosure b
-- Representation of StgStack: The 'tsoStack' of a 'TSOClosure'.
| StackClosure
{ info :: !StgInfoTable
- , size :: !Word32 -- ^ stack size in *words*
+ , stack_size :: !Word32 -- ^ stack size in *words*
, stack_dirty :: !Word8 -- ^ non-zero => dirty
#if __GLASGOW_HASKELL__ >= 811
, stack_marking :: Word8
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9983f83acda67bfea6f4a64a854f02c536361b0f
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9983f83acda67bfea6f4a64a854f02c536361b0f
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/20200601/844bc73e/attachment.html>
More information about the ghc-commits
mailing list