Skip to content
Snippets Groups Projects
  1. Jun 27, 2024
  2. Aug 11, 2023
    • Robert Schmidt's avatar
      Fix alignment of Tpool user data to 32 bytes · f3c2c12f
      Robert Schmidt authored
      The thread pool provides user data to be stored by (pre-)allocating the
      necessary memory. A previous attempt was made to have this user data
      aligned on a 32 byte boundary (e.g., to prevent segfault with SIMD
      instructions, or avoid inefficient data access); the current
      implementation, however, leads to unaligned memory access.
      
      This patch attempts again to implement user data to be 32 byte aligned.
      First, use memalign() to allocate the actual job on a 32 byte boundary.
      Second, use alignas(32) to align the pointer to the user data to be
      aligned to 32 bytes. Since it is the last member of the struct, this
      ensures that user data, which is allocated right behind it, will be
      aligned to 32 bytes as well.
      f3c2c12f
  3. Jun 12, 2023
  4. Apr 03, 2023
  5. Mar 09, 2023
  6. Nov 25, 2022
  7. Nov 21, 2022
  8. Sep 02, 2022
  9. Aug 16, 2022
  10. Aug 04, 2022
  11. Mar 14, 2022
  12. Mar 01, 2022
  13. Feb 28, 2022
  14. Feb 25, 2022
  15. Jan 05, 2022
  16. Dec 24, 2021
  17. Nov 11, 2021
  18. Sep 21, 2021
  19. Apr 13, 2021
  20. Jan 08, 2021
  21. Dec 23, 2020
  22. Dec 07, 2020
  23. Dec 01, 2020
  24. Jun 01, 2020
  25. Apr 29, 2020
  26. Mar 06, 2020
  27. Feb 06, 2020
  28. Nov 19, 2019
Loading