Skip to content
  • Mauritz Sundell's avatar
    fd95d6c6
    Bug#29184054: Post push fix, align elements in m_receive_lock array. · fd95d6c6
    Mauritz Sundell authored
    As part of replacing use of MY_ALIGNED macro with now standard c++ alignas
    specifier the aligned version of thr_spin_lock type was removed.  Which
    made the elements in m_receive_lock unaligned.
    
    -  MY_ALIGNED(NDB_CL)
    -  struct MY_ALIGNED(NDB_CL) aligned_locks : public thr_spin_lock
    -  {
    -  } m_receive_lock[MAX_NDBMT_RECEIVE_THREADS];
    +  alignas(NDB_CL) thr_spin_lock m_receive_lock[MAX_NDBMT_RECEIVE_THREADS];
    
    A new type thr_aligned_spin_lock is introduced to be used with m_receive_lock
    to make elements cache line aligned again.
    
    Reviewed by Magnus Blåudd
    fd95d6c6
    Bug#29184054: Post push fix, align elements in m_receive_lock array.
    Mauritz Sundell authored
    As part of replacing use of MY_ALIGNED macro with now standard c++ alignas
    specifier the aligned version of thr_spin_lock type was removed.  Which
    made the elements in m_receive_lock unaligned.
    
    -  MY_ALIGNED(NDB_CL)
    -  struct MY_ALIGNED(NDB_CL) aligned_locks : public thr_spin_lock
    -  {
    -  } m_receive_lock[MAX_NDBMT_RECEIVE_THREADS];
    +  alignas(NDB_CL) thr_spin_lock m_receive_lock[MAX_NDBMT_RECEIVE_THREADS];
    
    A new type thr_aligned_spin_lock is introduced to be used with m_receive_lock
    to make elements cache line aligned again.
    
    Reviewed by Magnus Blåudd
Loading