[Git][ghc/ghc][wip/gc/misc-rts] rts: Fix CPP linter issues
Ben Gamari
gitlab at gitlab.haskell.org
Wed Jun 19 00:26:56 UTC 2019
Ben Gamari pushed to branch wip/gc/misc-rts at Glasgow Haskell Compiler / GHC
Commits:
65b27369 by Ben Gamari at 2019-06-19T00:19:15Z
rts: Fix CPP linter issues
- - - - -
2 changed files:
- rts/Capability.c
- rts/Capability.h
Changes:
=====================================
rts/Capability.c
=====================================
@@ -847,7 +847,7 @@ void waitForCapability (Capability **pCap, Task *task)
*
* ------------------------------------------------------------------------- */
-#if defined (THREADED_RTS)
+#if defined(THREADED_RTS)
/* See Note [GC livelock] in Schedule.c for why we have gcAllowed
and return the bool */
@@ -953,7 +953,7 @@ yieldCapability (Capability** pCap, Task *task, bool gcAllowed)
* get every Capability into the GC.
* ------------------------------------------------------------------------- */
-#if defined (THREADED_RTS)
+#if defined(THREADED_RTS)
void
prodCapability (Capability *cap, Task *task)
@@ -975,7 +975,7 @@ prodCapability (Capability *cap, Task *task)
*
* ------------------------------------------------------------------------- */
-#if defined (THREADED_RTS)
+#if defined(THREADED_RTS)
bool
tryGrabCapability (Capability *cap, Task *task)
=====================================
rts/Capability.h
=====================================
@@ -160,7 +160,7 @@ struct Capability_ {
} // typedef Capability is defined in RtsAPI.h
// We never want a Capability to overlap a cache line with anything
// else, so round it up to a cache line size:
-#ifndef mingw32_HOST_OS
+#if !defined(mingw32_HOST_OS)
ATTRIBUTE_ALIGNED(64)
#endif
;
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/65b2736909158061b024eb6dc0db60cfdb433700
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/65b2736909158061b024eb6dc0db60cfdb433700
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/20190618/7b91dd4e/attachment-0001.html>
More information about the ghc-commits
mailing list