Lines Matching refs:GC

20 alias BlkInfo = GC.BlkInfo;
21 alias BlkAttr = GC.BlkAttr;
53 return GC.malloc(sz);
81 // extern(C++) classes don't have a classinfo pointer in their vtable so the GC can't finalize them
87 p = GC.malloc(init.length, attr, ci);
161 GC.free(cast(void*) *p);
178 GC.free(*p);
400 clear padding that might not be zeroed by the GC (it assumes it is within the
436 auto bi = GC.qalloc(padded_size, attr, tinext);
456 auto bi = GC.qalloc(padded_size, info.attr, tinext);
521 debug(PRINTF) printf("processing GC Marks, %x\n", cache);
542 // Bugzilla 10701 - segfault in GC
544 GC.free(result.ptr);
545 GC.collect();
552 NOTE: The base ptr in this struct can be cleared asynchronously by the GC,
676 auto info = bic ? *bic : GC.query(arr.ptr);
764 auto info = bic ? *bic : GC.query((*p).ptr);
860 auto u = GC.extend(info.base, extendsize, extendsize);
1120 auto blkInf = GC.qalloc(size, flags, ti);
1125 // the GC might not have cleared the padding area in the block
1183 auto info = bic ? *bic : GC.query(p.ptr);
1198 GC.free(info.base);
1215 assert(GC.addrOf(p) != null);
1217 assert(GC.addrOf(p) == null);
1224 assert(GC.addrOf(p) != null);
1226 assert(GC.addrOf(p) == null);
1237 GC.free(*p);
1335 // called by the GC
1382 // called by the GC
1553 auto info = bic ? *bic : GC.query((*p).ptr);
1575 auto u = GC.extend(info.base, extendsize, extendsize);
1622 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
1771 auto info = bic ? *bic : GC.query((*p).ptr);
1794 auto u = GC.extend(info.base, extendsize, extendsize);
1841 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
1919 * - Perhaps most importantly, overall memory usage and stress on the GC
1990 auto info = bic ? *bic : GC.query(px.ptr);
2013 auto u = GC.extend(info.base, newsize + extendoffset, newcap + extendoffset);
2057 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
2217 size_t cap = GC.sizeOf(result.ptr);
2442 assert(GC.getAttr(s1) == BlkAttr.NO_SCAN);
2446 assert(GC.getAttr(s2) == BlkAttr.NO_SCAN);
2450 assert(GC.getAttr(s3) == BlkAttr.NO_SCAN);
2452 assert(GC.sizeOf(s3) == 16);
2456 assert(GC.getAttr(s4) == 0);
2461 // Bugzilla 3454 - Inconsistent flag setting in GC.realloc()
2464 auto p = GC.malloc(8 * multiplier, 0);
2465 assert(GC.getAttr(p) == 0);
2468 p = GC.realloc(p, 8 * multiplier + 5, BlkAttr.NO_SCAN);
2469 assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
2472 p = GC.realloc(p, 2 * multiplier, 0);
2473 assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
2476 p = GC.realloc(p, 8 * multiplier, 0);
2477 assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
2500 auto info1 = GC.query(arr.ptr);
2507 auto info2 = GC.query(arr2.ptr);
2515 info2 = GC.query(arr2.ptr);
2520 info1 = GC.query(carr.ptr);
2527 info2 = GC.query(carr2.ptr);
2535 info2 = GC.query(carr2.ptr);
2543 auto info = GC.query(arr.ptr);
2548 GC.clrAttr(arr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2553 info = GC.query(arr2.ptr);
2559 GC.clrAttr(arr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2564 info = GC.query(arr2.ptr);
2569 info = GC.query(carr.ptr);
2574 GC.clrAttr(carr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2579 info = GC.query(carr2.ptr);
2585 GC.clrAttr(carr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2590 info = GC.query(carr2.ptr);
2621 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2623 GC.free(s2);
2627 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2629 GC.free(cast(void*)s3);
2633 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2635 GC.free(cast(void*)s4);
2639 BlkInfo blkinf1 = GC.query(carr1.ptr);
2640 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2642 GC.free(blkinf1.base);
2651 BlkInfo blkinf = GC.query(arr2.ptr);
2652 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2654 GC.free(blkinf.base);
2659 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2666 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2675 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2683 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2710 GC.free(p2);
2725 GC.free(arr1);
2742 GC.free(larr1);
2775 GC.runFinalizers((cast(uint*)&C1.__dtor)[0..1]);
2784 GC.free(cast(void*)c);
2810 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2819 GC.free(s);