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. |
0 replies
|
I resolved this in: |
1 reply
|
Ah! I think that might explain why I added it. Thanks again, will revert that change and add an explanation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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_CacheLineSizebecause alignas was used.All reactions