[Git][ghc/ghc][wip/tsan/no-barriers] rts: Make collectFreshWeakPtrs definition a prototype

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue Jun 27 13:02:35 UTC 2023



Ben Gamari pushed to branch wip/tsan/no-barriers at Glasgow Haskell Compiler / GHC


Commits:
8088aa2a by Ben Gamari at 2023-06-27T09:01:29-04:00
rts: Make collectFreshWeakPtrs definition a prototype

x86-64/Darwin's toolchain inexplicably warns that collectFreshWeakPtrs
needs to be a prototype.

- - - - -


1 changed file:

- rts/sm/MarkWeak.c


Changes:

=====================================
rts/sm/MarkWeak.c
=====================================
@@ -457,7 +457,7 @@ static void checkWeakPtrSanity(StgWeak *hd, StgWeak *tl)
  * Traverse the capabilities' local new-weak-pointer lists at the beginning of
  * GC and move them to the nursery's weak_ptr_list.
  */
-void collectFreshWeakPtrs()
+void collectFreshWeakPtrs( void )
 {
     uint32_t i;
     // move recently allocated weak_ptr_list to the old list as well



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8088aa2a4e91da80d05b615275cc93eaaa7d26fe

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8088aa2a4e91da80d05b615275cc93eaaa7d26fe
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/20230627/56543079/attachment-0001.html>


More information about the ghc-commits mailing list