1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 19:20:23 +02:00

Factor trace deque out to shared-worklist.h

Also increase alignment to account for cache line prefetcher.
This commit is contained in:
Andy Wingo 2024-07-08 10:42:58 +02:00
parent b4bf949df6
commit dd3953ef1a
3 changed files with 280 additions and 255 deletions

View file

@ -14,4 +14,9 @@ static inline uintptr_t align_up(uintptr_t addr, size_t align) {
return align_down(addr + align - 1, align);
}
// Poor man's equivalent of std::hardware_destructive_interference_size.
#define AVOID_FALSE_SHARING 128
#define ALIGNED_TO_AVOID_FALSE_SHARING \
__attribute__((aligned(AVOID_FALSE_SHARING)))
#endif // GC_ALIGN_H