[commit: ghc] wip/nfs-locking: Fix usage of -with-rtsopts (#429) (e4f9829)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 01:29:12 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/e4f982978c82a274d7befec8be19b3bd2d238c5d/ghc

>---------------------------------------------------------------

commit e4f982978c82a274d7befec8be19b3bd2d238c5d
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Oct 10 18:43:37 2017 -0400

    Fix usage of -with-rtsopts (#429)
    
    When I added `-qg` to the default RTS options in
    57cfa03c23047bb0c731428e97ca716d9a1cf312 (#385) I neglected to consider that it
    the -with-rtsopts flag would override the previous flag setting `-I0`. This
    had the effect of reenabling idle GC, causing GC time to regress terribly. I
    likely didn't notice this since I had passed the flags directly to the `hadrian`
    executable with `+RTS` while testing.
    
    Moreover, I mistakenly wrote `-qg0`, which (somewhat confusingly)
    actually *enables* parallel GC. Instead I wanted to write `-qg`.


>---------------------------------------------------------------

e4f982978c82a274d7befec8be19b3bd2d238c5d
 hadrian.cabal | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/hadrian.cabal b/hadrian.cabal
index 48514e1..8e583c7 100644
--- a/hadrian.cabal
+++ b/hadrian.cabal
@@ -133,10 +133,9 @@ executable hadrian
                        -Wredundant-constraints
                        -fno-warn-name-shadowing
                        -rtsopts
-                       -- Disable idle GC to avoid redundant GCs while waiting
-                       -- for external processes
-                       -with-rtsopts=-I0
-                       -- Don't use parallel GC as the synchronization time tends to eat any
-                       -- benefit.
-                       -with-rtsopts=-qg0
+                       -- * -I0: Disable idle GC to avoid redundant GCs while
+                       --        waiting for external processes
+                       -- * -qg: Don't use parallel GC as the synchronization
+                       --        time tends to eat any benefit.
+                       "-with-rtsopts=-I0 -qg"
                        -threaded



More information about the ghc-commits mailing list