Home
last modified time | relevance | path

Searched refs:Mallocator (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dregion.d370 import std.experimental.allocator.mallocator : Mallocator;
375 (size_t n) => Region!Mallocator(max(n, 1024 * 1024))
389 import std.experimental.allocator.mallocator : Mallocator;
407 auto reg = Region!(Mallocator, Mallocator.alignment,
412 auto sharedReg = SharedRegion!(Mallocator, Mallocator.alignment,
432 import std.experimental.allocator.mallocator : Mallocator;
437 enum alignment = Mallocator.alignment;
452 enum bufLen = 10 * Mallocator.alignment;
453 void[] tmp = Mallocator.instance.allocate(bufLen);
458 auto reg = Region!(LocalAllocator, Mallocator.alignment,
[all …]
H A Dfree_list.d126 import std.experimental.allocator.mallocator : Mallocator;
128 FreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
435 import std.experimental.allocator.mallocator : Mallocator;
446 static StatsCollector!(Mallocator, Options.all) parent;
1160 import std.experimental.allocator.mallocator : Mallocator;
1162 shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
1172 import std.experimental.allocator.mallocator : Mallocator;
1174 shared SharedFreeList!(Mallocator, 50, 50, chooseAtRuntime) a;
1188 import std.experimental.allocator.mallocator : Mallocator;
1191 static shared SharedFreeList!(Mallocator, 64, 128, 10) a;
[all …]
H A Dscoped_allocator.d218 import std.experimental.allocator.mallocator : Mallocator;
220 ScopedAllocator!Mallocator alloc;
239 ScopedAllocator!Mallocator alloc;
278 import std.experimental.allocator.mallocator : Mallocator;
281 auto a = Region!(Mallocator)(1024 * 64);
296 import std.experimental.allocator.mallocator : Mallocator;
298 ScopedAllocator!Mallocator alloc;
H A Dsegregator.d312 import std.experimental.allocator.mallocator : Mallocator;
317 128, FreeList!(Mallocator, 0, 128),
320 1024 * 1024, Mallocator,
380 import std.experimental.allocator.mallocator : Mallocator;
383 128, FreeList!(Mallocator, 0, 128),
385 1024 * 1024, Mallocator,
493 import std.experimental.allocator.mallocator : Mallocator;
495 alias a = Segregator!(10_240, Mallocator, Mallocator).instance;
H A Dquantizer.d272 import std.experimental.allocator.mallocator : Mallocator;
275 alias Alloc = Quantizer!(Region!(Mallocator),
277 auto a = Alloc(Region!Mallocator(1024 * 64));
302 import std.experimental.allocator.mallocator : Mallocator; in version()
304 alias MyAlloc = Quantizer!(Region!(Mallocator), in version()
306 testAllocator!(() => MyAlloc(Region!Mallocator(1024 * 64))); in version()
308 auto a = MyAlloc(Region!Mallocator(1024 * 64)); in version()
H A Dbucketizer.d248 import std.experimental.allocator.mallocator : Mallocator;
253 (size_t n) => Region!Mallocator(max(n, 1024 * 1024))),
269 import std.experimental.allocator.mallocator : Mallocator;
275 (size_t n) => Region!Mallocator(max(n, 1024 * 1024)), Mallocator),
H A Dbitmapped_block.d1406 import std.experimental.allocator.mallocator : Mallocator;
1413 auto a = BitmappedBlock!(blockSize, 8, Mallocator, Yes.multiblock)(numBlocks * blockSize);
1437 import std.experimental.allocator.mallocator : Mallocator;
1441 auto a = BitmappedBlock!(blockSize, 8, Mallocator, No.multiblock)(1024 * blockSize);
1467 import std.experimental.allocator.mallocator : Mallocator;
1469 auto r = Region!Mallocator(1024 * 96);
1470 …auto a = BitmappedBlock!(chooseAtRuntime, 8, Region!Mallocator*, No.multiblock)(&r, 1024 * 64, 102…
1668 import std.experimental.allocator.mallocator : Mallocator;
1720 …auto alloc1 = SharedBitmappedBlock!(blockSize, platformAlignment, Mallocator, Yes.multiblock)(1024…
1721 …auto alloc2 = SharedBitmappedBlock!(blockSize, platformAlignment, Mallocator, No.multiblock)(1024 …
[all …]
H A Daffix_allocator.d411 import std.experimental.allocator.mallocator : Mallocator;
413 alias A = AffixAllocator!(Mallocator, size_t, size_t);
472 import std.experimental.allocator.mallocator : Mallocator;
473 alias A = AffixAllocator!(Mallocator, size_t);
539 import std.experimental.allocator.mallocator : Mallocator;
541 alias a = AffixAllocator!(Mallocator, uint).instance;
H A Dfree_tree.d425 import std.experimental.allocator.mallocator : Mallocator;
436 f!Mallocator(33);
437 f!Mallocator(43);
H A Dallocator_list.d783 import std.experimental.allocator.mallocator : Mallocator;
785 AllocatorList!((n) => Region!()(new ubyte[max(n, 1024 * 4096)]), Mallocator) a;
824 import std.experimental.allocator.mallocator : Mallocator;
839 AllocatorList!((n) => AscendingPageAllocator(max(n, numPages * pageSize)), Mallocator) a;
882 import std.experimental.allocator.mallocator : Mallocator;
948 import std.experimental.allocator.mallocator : Mallocator;
H A Dfallback_allocator.d381 import std.experimental.allocator.mallocator : Mallocator;
384 alias a = FallbackAllocator!(Mallocator, Mallocator).instance;
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dfree_list.d121 import std.experimental.allocator.mallocator : Mallocator;
123 FreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
902 import std.experimental.allocator.mallocator : Mallocator; in version()
904 shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a; in version()
923 import std.experimental.allocator.mallocator : Mallocator; in version()
925 shared SharedFreeList!(Mallocator, 50, 50, chooseAtRuntime) a; in version()
1078 import std.experimental.allocator.mallocator : Mallocator;
1081 static shared SharedFreeList!(Mallocator, 64, 128, 10) a;
1108 import std.experimental.allocator.mallocator : Mallocator;
1109 static shared SharedFreeList!(Mallocator, 64, 128, 10) a;
[all …]
H A Dsegregator.d281 import std.experimental.allocator.mallocator : Mallocator;
286 128, FreeList!(Mallocator, 0, 128),
289 1024 * 1024, Mallocator,
349 import std.experimental.allocator.mallocator : Mallocator;
352 128, FreeList!(Mallocator, 0, 128),
354 1024 * 1024, Mallocator,
H A Dscoped_allocator.d196 import std.experimental.allocator.mallocator : Mallocator;
198 ScopedAllocator!Mallocator alloc;
216 ScopedAllocator!Mallocator alloc;
H A Dregion.d335 import std.experimental.allocator.mallocator : Mallocator;
339 (size_t n) => Region!Mallocator(max(n, 1024 * 1024))
351 import std.experimental.allocator.mallocator : Mallocator;
353 auto reg = Region!(Mallocator, Mallocator.alignment,
H A Daffix_allocator.d361 import std.experimental.allocator.mallocator : Mallocator;
363 alias A = AffixAllocator!(Mallocator, size_t, size_t);
407 import std.experimental.allocator.mallocator : Mallocator;
408 alias A = AffixAllocator!(Mallocator, size_t);
H A Dbucketizer.d228 import std.experimental.allocator.mallocator : Mallocator;
233 (size_t n) => Region!Mallocator(max(n, 1024 * 1024))),
H A Dfree_tree.d420 import std.experimental.allocator.mallocator : Mallocator;
431 f!Mallocator(33);
432 f!Mallocator(43);
H A Dkernighan_ritchie.d656 import std.experimental.allocator.mallocator : Mallocator;
663 AllocatorList!(n => KRRegion!Mallocator(max(n * 16, 1024 * 1024)),
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/
H A Dpackage.d234 import std.experimental.allocator.mallocator : Mallocator;
236 auto newAlloc = sharedAllocatorObject(Mallocator.instance);
576 alias SCAlloc = StatsCollector!(Mallocator, Options.bytesUsed);
599 alias SCAlloc = StatsCollector!(Mallocator, Options.bytesUsed);
1007 import std.experimental.allocator.mallocator : Mallocator;
1009 auto a = sharedAllocatorObject(Mallocator.instance);
1085 import std.experimental.allocator.mallocator : Mallocator;
1093 shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) sharedFL;
1097 Mallocator, chooseAtRuntime, chooseAtRuntime));
1122 Mallocator, chooseAtRuntime, chooseAtRuntime)
[all …]
H A Dmallocator.d13 struct Mallocator struct
15 version (StdUnittest) @system unittest { testAllocator!(() => Mallocator.instance); } in version() argument
81 static shared Mallocator instance; argument
87 auto buffer = Mallocator.instance.allocate(1024 * 1024 * 4);
88 scope(exit) Mallocator.instance.deallocate(buffer);
103 test!Mallocator();
116 test!Mallocator();
H A Dtyped.d400 import std.experimental.allocator.mallocator : Mallocator;
403 AllocFlag.fixedSize | AllocFlag.threadLocal, Mallocator,
414 static assert(is(typeof(*c) == Mallocator));
416 static assert(is(typeof(a.allocatorFor!f2()) == Mallocator));
419 static assert(is(typeof(a.allocatorFor!f3()) == Mallocator));
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/
H A Dmallocator.d8 struct Mallocator struct
10 @system unittest { testAllocator!(() => Mallocator.instance); }
67 static shared Mallocator instance; argument
74 auto buffer = Mallocator.instance.allocate(1024 * 1024 * 4);
75 scope(exit) Mallocator.instance.deallocate(buffer);
91 test!Mallocator();
105 test!Mallocator();
287 return Mallocator.instance.reallocate(b, newSize); in version()
H A Dpackage.d605 import std.experimental.allocator.mallocator : Mallocator;
613 shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) sharedFL;
634 IAllocator indirectMallocator = allocatorObject(&Mallocator.instance);
815 import std.experimental.allocator.mallocator : Mallocator;
816 alias alloc = Mallocator.instance;
852 import std.experimental.allocator.mallocator : Mallocator;
855 cast(void) Mallocator.instance.make!Pure(0);
861 static assert(!__traits(compiles, cast(void) Mallocator.instance.make!Impure(0)));
877 import std.experimental.allocator.mallocator : Mallocator;
878 assertThrown(make!InvalidStruct(Mallocator.instance, 42));
[all …]
H A Dtyped.d397 import std.experimental.allocator.mallocator : Mallocator;
400 AllocFlag.fixedSize | AllocFlag.threadLocal, Mallocator,
410 static assert(is(typeof(*c) == Mallocator));
412 static assert(is(typeof(a.allocatorFor!f2()) == Mallocator));
415 static assert(is(typeof(a.allocatorFor!f3()) == Mallocator));

12