instantiateAllocator

Returns a new instance of type BucketElementMallocAllocator suitable to be used with the Map passed as template parameter.

instantiateAllocator
(
Map
)
(
bool attempt_gc_track = true
)

Parameters

Map

the map to create the allocator according to

attempt_gc_track bool

if set to true and if the Bucket element contains reference items (e.g class or arrays) then the allocated values are added to the GC scan range. If set to false or if set to true but the Bucket element doesn't contain reference type then the item won't be tracked by the GC.

Return Value

Type: BucketElementMallocAllocator!(Map.Bucket)

an instance of type BucketElementMallocAllocator

Meta