home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 130,669 of 131,241   
   Chris M. Thomasson to All   
   Re: Variable-length instructions   
   29 Dec 25 16:59:48   
   
   From: chris.m.thomasson.1@gmail.com   
      
   On 12/28/2025 4:41 PM, BGB wrote:   
   [...]   
      
   Also, if using something like LOCK CMPXCHG you MUST make sure to align   
   and pad your relevant data structures to a l2 cache line.   
      
   Using LL/SC, you need to align and pad them up to a reservation granule.   
   False sharing tends to really nail the LL/SC because it can fail   
   spuriously. Oh the granule was tweaked, lets fail...   
      
   The LOCK CMPXCHG is focusing on value comparison. It's a strong CAS in   
   C++ std.   
      
   The LL/SC if focusing on something else, the granule. It's a weak CAS in   
   C++ std.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca