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:
parent
b4bf949df6
commit
dd3953ef1a
3 changed files with 280 additions and 255 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue