hardware_destructive_interference_size.patch 809 B

12345678910111213141516171819202122232425
  1. # hardware_destructive_interference_size was added in:
  2. # https://chromium-review.googlesource.com/c/chromium/src/+/5767325
  3. # then partially reverted in:
  4. # https://chromium-review.googlesource.com/c/chromium/src/+/5841144
  5. # This reverts the remaining change
  6. --- a/components/media_router/common/providers/cast/channel/enum_table.h
  7. +++ b/components/media_router/common/providers/cast/channel/enum_table.h
  8. @@ -12,7 +12,6 @@
  9. #include <cstdint>
  10. #include <cstring>
  11. -#include <new>
  12. #include <optional>
  13. #include <ostream>
  14. #include <string_view>
  15. @@ -368,7 +367,8 @@ class EnumTable {
  16. private:
  17. #ifdef ARCH_CPU_64_BITS
  18. - alignas(std::hardware_destructive_interference_size)
  19. + // Align the data on a cache line boundary.
  20. + alignas(64)
  21. #endif
  22. std::initializer_list<Entry> data_;
  23. bool is_sorted_;