[Git][ghc/ghc][master] 2 commits: Fix docs who misstated how the RTS treats size suffixes.

Marge Bot gitlab at gitlab.haskell.org
Sat Sep 19 19:50:38 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
8f8d51f1 by Andreas Klebinger at 2020-09-19T15:50:33-04:00
Fix docs who misstated how the RTS treats size suffixes.

They are parsed as multiples of 1024. Not 1000. The docs
used to imply otherwise.

See decodeSize in rts/RtsFlags.c for the logic for this.

- - - - -
2ae0edbd by Andreas Klebinger at 2020-09-19T15:50:33-04:00
Fix a codeblock in ghci.rst

- - - - -


2 changed files:

- docs/users_guide/ghci.rst
- docs/users_guide/runtime_control.rst


Changes:

=====================================
docs/users_guide/ghci.rst
=====================================
@@ -2564,6 +2564,7 @@ commonly used commands.
     be used.
 
     .. code-block:: none
+
         ghci>:set -XDataKinds -XUndecidableInstances
         ghci>import GHC.TypeLits
         ghci>class A a


=====================================
docs/users_guide/runtime_control.rst
=====================================
@@ -81,8 +81,8 @@ command line to go to the program (and not the RTS), use a
 the program, while ``--`` will.
 
 As always, for RTS options that take ⟨size⟩s: If the last character of
-⟨size⟩ is a K or k, multiply by 1000; if an M or m, by 1,000,000; if a G
-or G, by 1,000,000,000. (And any wraparound in the counters is *your*
+⟨size⟩ is a K or k, multiply by 1024; if an M or m, by 1024*1024; if a G
+or G, by 1024^3. (And any wraparound in the counters is *your*
 fault!)
 
 Giving a ``+RTS -?`` RTS option will print out the RTS



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/f1accd00969e0b2993f14ee4ed858cea0c13357e...2ae0edbdfaf920d0c4da4edf721b947e11eb054c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/f1accd00969e0b2993f14ee4ed858cea0c13357e...2ae0edbdfaf920d0c4da4edf721b947e11eb054c
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/20200919/f06845ae/attachment.html>


More information about the ghc-commits mailing list