-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precompiling gave AssertionError: fieldoffset(CheckPadAfter64, 3) == CACHELINE_SIZE
#35
Comments
Thanks for the report! I don't have a macOS and so I didn't know this :) |
Hmm... it worked on github action: https://github.com/tkf/ConcurrentCollections.jl/pull/36/checks?check_run_id=3659030733#step:3:31
Do you mind checking this in your REPL? julia> primitive type PadAfter64 448 end
julia> mutable struct CheckPadAfter64
a::UInt64
pad::PadAfter64
b::UInt64
end
julia> fieldoffset(CheckPadAfter64, 3)
0x0000000000000040 |
yeah notice that the action is using x86 darwin not arm. julia> primitive type PadAfter64 448 end
julia> mutable struct CheckPadAfter64
a::UInt64
pad::PadAfter64
b::UInt64
end
julia> fieldoffset(CheckPadAfter64, 3)
0x0000000000000050 |
Ah, I see. Does ARM use a different alignment rule? |
not sure, but ive run into a bunch of other issues using m1 so i figured it was related |
OK, thanks. Need more digging... Edit: clang seems to use 64 for both x84_64 and armv8 https://godbolt.org/z/PorhGc1sf |
maybe you're already aware of this. thanks for the package btw
The text was updated successfully, but these errors were encountered: