On Sunday, 20 April 2014 at 05:21:48 UTC, Manu via Digitalmars-d wrote:
I don't really see why a proposed @nogc thread wouldn't hold references to GC allocated objects... what would such a thread do if it didn't have any
data to work with?

Approach 1: Nogc thread can hold references to the gc heap that is known to be under bookkeeping or that is reachable from objects that are under book keeping. No need to scan the @nogc thread then.

Approach 2: separate scan and freeing in the GC by pushing collected item onto a list of pending objects that are waiting for @nogc to complete an iteration before they are put on the freelist. This should work for standard culling.

Ola.

Reply via email to