[commit: ghc] master: Changed ioManagerCapabilitiesChanged to take no arguments. (1cefeee)

Johan Tibell johan.tibell at gmail.com
Tue Feb 12 07:49:18 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/1cefeee284956ac936b417441ae0c9b721fd3297

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

commit 1cefeee284956ac936b417441ae0c9b721fd3297
Author: Andreas Voellmy <andreas.voellmy at gmail.com>
Date:   Mon Jan 7 13:46:58 2013 -0500

    Changed ioManagerCapabilitiesChanged to take no arguments.
    
    ioManagerCapabilitiesChanged now queries getNumCapabilities for the current number of enabled capabilities.

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

 rts/Schedule.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/rts/Schedule.c b/rts/Schedule.c
index 7eaaba2..f39ef96 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -2070,9 +2070,7 @@ setNumCapabilities (nat new_n_capabilities USED_IF_THREADS)
     // Notify IO manager that the number of capabilities has changed.
     rts_evalIO(
        &cap,
-       rts_apply(cap, 
-		 &base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure,
-		 rts_mkInt(cap, enabled_capabilities)),
+       &base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure,
        NULL);
 
     rts_unlock(cap);





More information about the ghc-commits mailing list