Ignore:
Timestamp:
Dec 21, 2020, 6:00:05 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
fe97de26
Parents:
7efb322
Message:

Fixed the padding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.go

    r7efb322 r3f8baf4  
    7575// May exchanges data
    7676type Spot struct {
     77        _p1 [16]uint64 // padding
    7778        ptr uintptr // atomic variable use fo MES
    7879        id int      // id for debugging
    79         _p [16]uint64 // padding
     80        _p2 [16]uint64 // padding
    8081}
    8182
     
    244245        channels := make([]Spot, nthreads - nprocs) // Number of spots
    245246        for i := range channels {
    246                 channels[i] = Spot{uintptr(0), i,[16]uint64{0}}     // init spots
     247                channels[i] = Spot{[16]uint64{0},uintptr(0), i,[16]uint64{0}}     // init spots
    247248        }
    248249
Note: See TracChangeset for help on using the changeset viewer.