Am 17.06.2018 um 09:44 schrieb Sven Barth via fpc-pascal:
Terry Mead <[email protected] <mailto:[email protected]>> schrieb am So., 17. Juni 2018, 07:45:If the default memory manager for FP creates a heap for each thread, what happens if an object is created in one thread and freed by another ?If I remember correctly the memory becomes part of the thread's free list that freed the memory. (Though I could be wrong here)
No. It is added to the "wait for free" queue of the thread which initially allocated it. _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
