custom memory management

Simon Bürger" <simon.buerger at rwth-aachen.de> Simon Bürger" <simon.buerger at rwth-aachen.de>
Thu Feb 27 14:25:28 PST 2014


On Thursday, 27 February 2014 at 22:15:41 UTC, Steven 
Schveighoffer wrote:
> On Thu, 27 Feb 2014 16:46:15 -0500, Simon Bürger [...]
> More and more, I think a thread-local flag of "I'm in the GC 
> collection cycle" would be hugely advantageous -- if it doesn't 
> already exist...

I don't think it does, so I actually implemented it myself (not 
thread-local, but same locking as the rest of the gc): 
github.com/Krox/druntime/commit/38b718f1dcf08ab8dabb6eed10ff1073e215890f 
. But now that you mention it, a thread-local flag might be 
better.


More information about the Digitalmars-d-learn mailing list