TempAlloc: an unusual request

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 20 08:04:00 PDT 2011


On 6/20/11 10:02 AM, dsimcha wrote:
> == 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.

I don't understand why such would be necessary.

Andrei


More information about the Digitalmars-d mailing list