<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 7:53 AM, Filipe Cabecinhas <span dir="ltr"><<a href="mailto:filcab+llvm.phabricator@gmail.com" target="_blank">filcab+llvm.phabricator@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">filcab added a subscriber: filcab.<br>
filcab added a comment.<br>
<span class=""><br>
No bug, and there's no specific limit in the docs (well, you can see<br>
how it's implemented and check the limits of the Queue's innards).<br>
<br>
multiprocessing.Queue is allowed to behave like this, though:<br>
<a href="https://docs.python.org/2/library/multiprocessing.html#multiprocessing.Queue.put" rel="noreferrer" target="_blank">https://docs.python.org/2/library/multiprocessing.html#multiprocessing.Queue.put</a><br>
<br>
"put(obj[, block[, timeout]])<br>
Put obj into the queue. If the optional argument block is True (the<br>
default) and timeout is None (the default), block if necessary until a<br>
free slot is available."<br>
<br>
Do you want me to add this to the commit message? I don't think it's<br>
the most useful thing to have in a comment there, reminding people to<br>
look at the docs. :-)<br></span></blockquote><div><br></div><div>I think it makes sense to have it in a comment, because it is a non-obvious aspect of the API which is affecting how the code needs to be structured. Probably worth pointing out in the commit message why this seemed to work until lately: the actual limit at which it blocks that we have seen in practice in multiprocessing.Queue.put is on mac due to the 2^15 semaphore up limit.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
Thank you,<br>
<br>
  Filipe<br>
<br>
<br>
</span><a href="http://reviews.llvm.org/D17609" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17609</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>