TempAlloc: an unusual request

dsimcha dsimcha at yahoo.com
Mon Jun 20 08:02:01 PDT 2011


== Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s article
> 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

No.  I don't want every creation of a new frame to require a GC heap allocation.


More information about the Digitalmars-d mailing list