On Thu, Jan 20, 2011 at 1:41 PM, Anton Vodonosov <span dir="ltr"><<a href="mailto:avodonosov@yandex.ru">avodonosov@yandex.ru</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div id=":1g6">I worry about this code: [...]<br>
Can we run it in parallel with GC?</div></blockquote></div><br>It is not 100% safe for other reasons, but memory allocation is protected by locks from other events such as garbage collection and memory allocation by other threads.<br>
<br>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>