[commit: ghc] wip/fix-docs: Revert "rts: Ensure that the_gc_thread is aligned" (6d68553)
git at git.haskell.org
git at git.haskell.org
Wed Aug 8 23:00:32 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/fix-docs
Link : http://ghc.haskell.org/trac/ghc/changeset/6d68553346af842e390b9e8bab846482e50930a2/ghc
>---------------------------------------------------------------
commit 6d68553346af842e390b9e8bab846482e50930a2
Author: Ben Gamari <ben at smart-cactus.org>
Date: Wed Aug 8 18:59:44 2018 -0400
Revert "rts: Ensure that the_gc_thread is aligned"
This reverts commit 87a79e394013e5f722496900227b126015d0d780.
>---------------------------------------------------------------
6d68553346af842e390b9e8bab846482e50930a2
rts/sm/GC.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index bd4a81c..67eba93 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -128,11 +128,7 @@ uint32_t mutlist_MUTVARS,
gc_thread **gc_threads = NULL;
#if !defined(THREADED_RTS)
-/* Use conservative alignment since we will cast this to a gc_thread and
- * consequently the compiler may assume it is aligned. See #15482.
- */
-StgWord8 the_gc_thread[sizeof(gc_thread) + 64 * sizeof(gen_workspace)]
- __attribute__((aligned(sizeof(W_))));
+StgWord8 the_gc_thread[sizeof(gc_thread) + 64 * sizeof(gen_workspace)];
#endif
// Number of threads running in *this* GC. Affects how many
More information about the ghc-commits
mailing list