Stefan Schulze Frielinghaus pushed to branch wip/fix-gen_workspace at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • rts/sm/GCThread.h
    ... ... @@ -83,7 +83,7 @@
    83 83
     // platforms.
    
    84 84
     #define GEN_WORKSPACE_ALIGNMENT CACHELINE_SIZE
    
    85 85
     
    
    86
    -typedef struct gen_workspace_ {
    
    86
    +typedef struct ATTRIBUTE_ALIGNED(GEN_WORKSPACE_ALIGNMENT) gen_workspace_ {
    
    87 87
         generation * gen;           // the gen for this workspace
    
    88 88
         struct gc_thread_ * my_gct; // the gc_thread that contains this workspace
    
    89 89
     
    
    ... ... @@ -109,7 +109,7 @@ typedef struct gen_workspace_ {
    109 109
         bdescr *     part_list;
    
    110 110
         StgWord      n_part_blocks;      // count of above
    
    111 111
         StgWord      n_part_words;
    
    112
    -} gen_workspace ATTRIBUTE_ALIGNED(GEN_WORKSPACE_ALIGNMENT);
    
    112
    +} gen_workspace;
    
    113 113
     
    
    114 114
     /* ----------------------------------------------------------------------------
    
    115 115
        GC thread object