C++ already gives us a tool for pointer zapping
C++ already gives us a tool for pointer zapping
Posted Oct 18, 2024 0:41 UTC (Fri) by jrtc27 (subscriber, #107748)In reply to: C++ already gives us a tool for pointer zapping by PaulMcKenney
Parent article: Zapping pointers out of thin air
Performance is always going to be dependent on the implementation, as a tradeoff with power and area, and there are some quirks on Morello due to being an experimental prototype implementation, but in general it would be reasonable to expect them to perform somewhere between plain CAS(A)(L) and CAS(A)(L)P. On a high-performance implementation there will likely be a 128-bit data path already there (true of Morello) so they probably all perform about the same, but a lower-performance implementation could choose to have a narrower data path to reduce core area and take an extra cycle. But in terms of cache coherency traffic it's the same, it still fits in a single cache line, you're just accessing more of that cache line.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
