<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Florian Klämpfl <<a href="mailto:florian@freepascal.org">florian@freepascal.org</a>> schrieb am So., 17. Juni 2018, 10:47:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 17.06.2018 um 09:44 schrieb Sven Barth via fpc-pascal:<br>
> Terry Mead <<a href="mailto:tlm@weighbatch.com" target="_blank" rel="noreferrer">tlm@weighbatch.com</a> <mailto:<a href="mailto:tlm@weighbatch.com" target="_blank" rel="noreferrer">tlm@weighbatch.com</a>>> schrieb am So., 17. Juni 2018, 07:45:<br>
> <br>
> If the default memory manager for FP creates a heap for each thread, what happens if an object is created in one<br>
> thread and freed by another ?<br>
> <br>
> <br>
> If I remember correctly the memory becomes part of the thread's free list that freed the memory. (Though I could be <br>
> wrong here)<br>
<br>
No. It is added to the "wait for free" queue of the thread which initially allocated it.<br></blockquote></div><div dir="auto"><br></div><div dir="auto">Ah! That's how it was! 🤦♀️</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>