Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.go

    r3d19ae6 rf4f79dd  
    1818// ==================================================
    1919type MyData struct {
    20         _p1 [16]uint64 // padding
    2120        ttid int
    2221        id int
    2322        data [] uint64
    24         _p2 [16]uint64 // padding
    2523}
    2624
     
    3129                data[i] = 0
    3230        }
    33         return &MyData{[16]uint64{0}, syscall.Gettid(), id, data,[16]uint64{0}}
     31        return &MyData{syscall.Gettid(), id, data}
    3432}
    3533
     
    4846// ==================================================
    4947type MyCtx struct {
    50         _p1 [16]uint64 // padding
    5148        s * semaphore.Weighted
    5249        d unsafe.Pointer
     
    5451        ttid int
    5552        id int
    56         _p2 [16]uint64 // padding
    5753}
    5854
    5955func NewCtx( data * MyData, id int ) (MyCtx) {
    60         r := MyCtx{[16]uint64{0},semaphore.NewWeighted(1), unsafe.Pointer(data), context.Background(), syscall.Gettid(), id,[16]uint64{0}}
     56        r := MyCtx{semaphore.NewWeighted(1), unsafe.Pointer(data), context.Background(), syscall.Gettid(), id}
    6157        r.s.Acquire(context.Background(), 1)
    6258        return r
     
    7773        ptr uintptr // atomic variable use fo MES
    7874        id int      // id for debugging
    79         _p [16]uint64 // padding
    8075}
    8176
     
    244239        channels := make([]Spot, nthreads - nprocs) // Number of spots
    245240        for i := range channels {
    246                 channels[i] = Spot{uintptr(0), i,[16]uint64{0}}     // init spots
     241                channels[i] = Spot{uintptr(0), i}     // init spots
    247242        }
    248243
Note: See TracChangeset for help on using the changeset viewer.