[commit: ghc] master: Move stat_startGCSync (e98edbd)

git at git.haskell.org git at git.haskell.org
Wed Jul 27 15:26:41 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e98edbd1b8947dcb4a47d20fc854c0a9a6954bea/ghc

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

commit e98edbd1b8947dcb4a47d20fc854c0a9a6954bea
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Wed Jul 27 08:25:59 2016 -0700

    Move stat_startGCSync
    
    @simonmar told me that it makes more sense this way.
    
    Test Plan: it still builds
    
    Reviewers: bgamari, austin, simonmar, erikd
    
    Reviewed By: simonmar, erikd
    
    Subscribers: thomie, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D2428


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

e98edbd1b8947dcb4a47d20fc854c0a9a6954bea
 rts/Schedule.c | 2 ++
 rts/sm/GC.c    | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rts/Schedule.c b/rts/Schedule.c
index d9ab913..c3911af 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -1646,6 +1646,8 @@ scheduleDoGC (Capability **pcap, Task *task USED_IF_THREADS,
         } while (was_syncing);
     }
 
+    stat_startGCSync(gc_threads[cap->no]);
+
 #ifdef DEBUG
     unsigned int old_n_capabilities = n_capabilities;
 #endif
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 7796f30..a6a1a9a 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -1099,8 +1099,6 @@ waitForGcThreads (Capability *cap USED_IF_THREADS)
     uint32_t i, j;
     rtsBool retry = rtsTrue;
 
-    stat_startGCSync(gc_threads[cap->no]);
-
     while(retry) {
         for (i=0; i < n_threads; i++) {
             if (i == me || gc_threads[i]->idle) continue;



More information about the ghc-commits mailing list