I'd guess the diffference may be:<div><br></div><div> * malloc_rc keep a refcount?<br><br> * malloc_rc performs the allocation within Gambits memory system? (well, for blocks above 512 bytes, Gambit's memory system makes a separate malloc anyhow, so for your usecase it could be equal in this respect)</div>

<div><br></div><div>You should find the answer by checking the source? Look for the calls called something like inc_rc and dec_rc too.<br><br><div class="gmail_quote">2013/4/12 Álvaro Castro-Castilla <span dir="ltr"><<a href="mailto:alvaro.castro.castilla@gmail.com" target="_blank">alvaro.castro.castilla@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'd like to know what's the main difference between using the malloc/free combination vs. the ___EXT(___alloc_rc) / ___EXT(___alloc_rc) one.</div>

<div><br></div><div>

Mi intention is to create C arrays and manage them from the Scheme side, so I can explicitly free them once I need to.</div><div><br></div><div>Which one should I use?</div><div><br></div><div>Thank you,</div>

<div><br></div><div>Álvaro</div></div>
<br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div>