-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix compatibility with zeromq 4.1 #84
Conversation
So did this change between different ZMQ versions? Any compatibility issues with distros that are not as bleeding-edge? I guess Travis will build 3.2.4 from source? |
See also zeromq/libzmq@d9fb1d3 ... do we need to have an explicit |
@tkelman, yes, apparently they expanded the size of the struct in a recent version. As long as we use a padding size that is ≥ any size used in any version of ZMQ, we should be fine, because we don't actually access any of that data ourselves. |
I hoped that a big
Hopefully not. And this is what I want to check with the CI builds. |
Is zeromq/libzmq@d9fb1d3 released yet? I don't see that on 4.1.2. Should we increase the size of the structure by 1 pointer then? P.S. I think the GC allocation are aligned now, which should be all what matters? @carnaval |
@yuyichao, that patch does not increase the size of If our GC allocation is aligned, that is all that matters. |
Ah.... I think this is not the first time I missed sth like this .............. = = .... |
To the best of my knowledge, a huge bitstype should garentee maximum alignment https://github.com/JuliaLang/julia/blob/f4283920037399a0ecefa4507adbc6eb9a25708e/src/alloc.c#L654 |
Sound good. Let's merge and tag this once Travis is green. |
I haven't checked the upstream tracker but at least I can confirm that the tests all pass and I have just plotted a curve in IJulia with PyPlot. (Still find it wierd that I had a working IJulia on earlier master. Did we tighten the allocation recently?....) |
Fix compatibility with zeromq 4.1
Should we tag a new release? |
Yes, I'll tag it. |
THX. |
Tagged as v0.1.19. |
Fix #83.
The padding size matches what's in the zmq header now. (On 0.4-dev this can be a
NTuple{8, Int64}
...)