TempAlloc: an unusual request

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 20 07:23:24 PDT 2011


On 6/19/11 6:20 PM, dsimcha wrote:
> My other concern is that giving RegionAllocator reference semantics
> would, IIUC, require an allocation to allocate a RegionAllocator. Since
> TempAlloc is designed to avoid global GC locks/world stopping like the
> plauge, this is obviously bad.

I am hoping we can arrange things such that a RegionAllocator created 
from scratch initializes a new frame, whereas subsequent copies of it 
use that same frame. Would that work?

Andrei


More information about the Digitalmars-d mailing list