[commit: ghc] ghc-parmake-gsoc: genSym: atomic_inc() now takes two arguments (81bafce)

git at git.haskell.org git at git.haskell.org
Wed Sep 4 20:41:08 CEST 2013


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

On branch  : ghc-parmake-gsoc
Link       : http://ghc.haskell.org/trac/ghc/changeset/81bafceb14dfae45a59566c232b6b6eb4e4ffd09/ghc

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

commit 81bafceb14dfae45a59566c232b6b6eb4e4ffd09
Author: Patrick Palka <patrick at parcs.ath.cx>
Date:   Wed Sep 4 13:33:14 2013 -0400

    genSym: atomic_inc() now takes two arguments


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

81bafceb14dfae45a59566c232b6b6eb4e4ffd09
 compiler/cbits/genSym.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/cbits/genSym.c b/compiler/cbits/genSym.c
index 8614e97..4217e63 100644
--- a/compiler/cbits/genSym.c
+++ b/compiler/cbits/genSym.c
@@ -7,7 +7,7 @@ HsInt genSym(void) {
     if (n_capabilities == 1) {
         return GenSymCounter++;
     } else {
-        return atomic_inc((StgWord *)&GenSymCounter);
+        return atomic_inc((StgWord *)&GenSymCounter, 1);
     }
 }
 





More information about the ghc-commits mailing list