Replies: 3 comments 1 reply
-
Thanks for spotting, and I agree. I can't recall why I added this - potentially just habit from before alignment was easy to do cross platform. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I resolved this in: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ah! I think that might explain why I added it. Thanks again, will revert that change and add an explanation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I don't think this line is required:
char prevent_false_Share[ enki::gc_CacheLineSize - sizeof(std::atomic<ThreadState>) - sizeof(semaphoreid_t*) ];
The compiler will pad the structure automatically so that every instance in an array will be aligned on
enki::gc_CacheLineSize
because alignas was used.Beta Was this translation helpful? Give feedback.
All reactions