Lines Matching refs:GC
23 alias BlkInfo = GC.BlkInfo;
24 alias BlkAttr = GC.BlkAttr;
65 return GC.malloc(sz);
90 // extern(C++) classes don't have a classinfo pointer in their vtable so the GC can't finalize them
96 p = GC.malloc(ci.initializer.length, attr, ci);
170 GC.free(cast(void*) *p);
187 GC.free(*p);
431 return GC.qalloc(padded_size, attr, ti);
448 return GC.qalloc(padded_size, info.attr, ti);
508 debug(PRINTF) printf("processing GC Marks, %x\n", cache);
529 // Bugzilla 10701 - segfault in GC
531 GC.free(result.ptr);
532 GC.collect();
539 NOTE: The base ptr in this struct can be cleared asynchronously by the GC,
663 auto info = bic ? *bic : GC.query(arr.ptr);
745 auto info = bic ? *bic : GC.query((*p).ptr);
841 auto u = GC.extend(info.base, extendsize, extendsize);
1091 auto blkInf = GC.qalloc(size, flags, ti);
1157 auto info = bic ? *bic : GC.query(p.ptr);
1172 GC.free(info.base);
1189 assert(GC.addrOf(p) != null);
1191 assert(GC.addrOf(p) == null);
1198 assert(GC.addrOf(p) != null);
1200 assert(GC.addrOf(p) == null);
1211 GC.free(*p);
1309 // called by the GC
1355 // called by the GC
1506 auto info = bic ? *bic : GC.query((*p).ptr);
1522 auto u = GC.extend(info.base, extendsize, extendsize);
1565 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
1696 auto info = bic ? *bic : GC.query((*p).ptr);
1713 auto u = GC.extend(info.base, extendsize, extendsize);
1757 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
1862 * - Perhaps most importantly, overall memory usage and stress on the GC
1931 auto info = bic ? *bic : GC.query(px.ptr);
1954 auto u = GC.extend(info.base, newsize + extendoffset, newcap + extendoffset);
1998 info.attr = GC.getAttr(info.base) | BlkAttr.APPENDABLE;
2153 size_t cap = GC.sizeOf(result.ptr);
2375 assert(GC.getAttr(s1) == BlkAttr.NO_SCAN);
2379 assert(GC.getAttr(s2) == BlkAttr.NO_SCAN);
2383 assert(GC.getAttr(s3) == BlkAttr.NO_SCAN);
2385 assert(GC.sizeOf(s3) == 16);
2389 assert(GC.getAttr(s4) == 0);
2394 // Bugzilla 3454 - Inconsistent flag setting in GC.realloc()
2397 auto p = GC.malloc(8 * multiplier, BlkAttr.NO_SCAN);
2398 assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
2399 p = GC.realloc(p, 2 * multiplier, BlkAttr.NO_SCAN);
2400 assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
2423 auto info1 = GC.query(arr.ptr);
2430 auto info2 = GC.query(arr2.ptr);
2438 info2 = GC.query(arr2.ptr);
2443 info1 = GC.query(carr.ptr);
2450 info2 = GC.query(carr2.ptr);
2458 info2 = GC.query(carr2.ptr);
2466 auto info = GC.query(arr.ptr);
2471 GC.clrAttr(arr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2476 info = GC.query(arr2.ptr);
2482 GC.clrAttr(arr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2487 info = GC.query(arr2.ptr);
2492 info = GC.query(carr.ptr);
2497 GC.clrAttr(carr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2502 info = GC.query(carr2.ptr);
2508 GC.clrAttr(carr.ptr, BlkAttr.NO_SCAN); // remove the attribute
2513 info = GC.query(carr2.ptr);
2546 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2548 GC.free(s2);
2552 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2554 GC.free(cast(void*)s3);
2558 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2560 GC.free(cast(void*)s4);
2564 BlkInfo blkinf1 = GC.query(carr1.ptr);
2565 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2567 GC.free(blkinf1.base);
2579 BlkInfo blkinf = GC.query(arr2.ptr);
2580 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2582 GC.free(blkinf.base);
2588 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2597 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2609 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2620 GC.runFinalizers((cast(char*)(&entryDtor))[0..1]);
2642 GC.runFinalizers((cast(uint*)&C1.__dtor)[0..1]);
2651 GC.free(cast(void*)c);
2680 GC.runFinalizers((cast(char*)(typeid(S1).xdtor))[0..1]);
2689 GC.free(s);