[zeromq-dev] [PATCH][Issue 137] Two alternative patches to resolve MSVC optimisation issue

Steven McCoy steven.mccoy at miru.hk
Mon Dec 6 03:59:46 CET 2010


Interesting the _ReadWriteBarrier() intrinsic does not work even though that
is what it is designed for.  I manually add a memory fence using a locking
intrinsic or just disable optimisation of the entire function.  For high
performance of TCP it is probably better to go with adding the intrinsic.

To reproduce just run the following a few times and see if it locks,

remote_thr.exe "epgm://10.6.28.35;239.192.0.1:7500" 10 10

Patches are not signed because there are two options, therefore I explicitly
state these patches are released under the MIT/X11 license.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101206/183a924a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: option1_disable_opt.patch
Type: application/octet-stream
Size: 533 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101206/183a924a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: option2_add_fence.patch
Type: application/octet-stream
Size: 549 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101206/183a924a/attachment-0001.obj>


More information about the zeromq-dev mailing list