On 25/10/2013 3:46 PM, Jonathan S. Shapiro wrote:
Unless the stack-scoped region is somehow partitioned from the rest of the heap in an identifiable way, you're going to have a hard time reclaiming that storage quickly. I see how to do it; it just isn't pretty.
Not partitioned, but tracked was my idea. Each thread could have a linked stack of such regions. A bit flag indicating a region is being scanned means the owning thread transfers ownership to the GC thread instead of freeing the region. The GC will have to free all of its stack regions anyway when a scan is complete, so now it also frees the donated stack.
You again lose the immediacy of reclamation of stack values in some corner cases, in order to reduce scanning latency.
Sandro
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
