touch# primitive

Daniel Cartwright chessai1996 at gmail.com
Tue Sep 18 15:07:24 UTC 2018


in GHC.Prim, there is a primitive 'touch#'. It seems that it is used to
keep pointers alive, and takes something of any runtime representation, and
a State# RealWorld, but there's really no documentation on it, so my idea
of what it does is just a guess. Can anyone explain what exactly it does?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180918/d71a48a0/attachment.html>


More information about the ghc-devs mailing list