Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 25 of 70) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_gc.py4 import gc
42 gc.collect()
44 self.assertEqual(gc.collect(), 1)
49 gc.collect()
51 self.assertEqual(gc.collect(), 1)
58 gc.collect()
61 self.assertEqual(gc.collect(), 2)
67 gc.collect()
69 self.assertNotEqual(gc.collect(), 0)
74 gc.collect()
[all …]
Dtest_tuple.py3 import gc
89 gc.collect()
90 gc.collect()
91 self.assertFalse(gc.is_tracked(t), t)
94 self.assertTrue(gc.is_tracked(t), t)
95 gc.collect()
96 gc.collect()
97 self.assertTrue(gc.is_tracked(t), t)
155 self._not_tracked(tuple(gc.collect() for i in range(101)))
Dtest_genexps.py273 import gc
277 gc.collect()
Dtest_setcomps.py142 import gc
146 gc.collect()
Dtest_dictcomps.py45 import gc
49 gc.collect()
Dtest_weakref.py1 import gc
403 import gc
409 wr = weakref.ref(c, lambda ignore: gc.collect())
417 wr = weakref.ref(c1.i, lambda ignore: gc.collect())
433 import gc
470 gc.collect()
473 import gc
499 gc.collect()
502 import gc
523 gc.collect()
[all …]
Dtest_threading_local.py5 import gc
37 gc.collect()
46 gc.collect()
93 gc.collect()
203 gc.collect()
Dtest_list.py68 import gc
72 gc.collect()
Dregrtest.py302 import gc
303 gc.set_threshold(int(a))
379 import gc
575 gc.collect()
576 if gc.garbage:
577 print "Warning: test created", len(gc.garbage),
581 found_garbage.extend(gc.garbage)
582 del gc.garbage[:]
929 import gc
932 gc.collect()
[all …]
Dtest_dict.py5 import gc, weakref
549 gc.collect()
554 gc.collect()
555 gc.collect()
556 self.assertFalse(gc.is_tracked(t), t)
559 self.assertTrue(gc.is_tracked(t), t)
560 gc.collect()
561 gc.collect()
562 self.assertTrue(gc.is_tracked(t), t)
Dtest_sys_setprofile.py1 import gc
360 old_gc = gc.isenabled()
361 gc.disable()
368 gc.enable()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dgcmodule.c213 #define IS_TRACKED(o) ((AS_GC(o))->gc.gc_refs != GC_UNTRACKED)
214 #define IS_REACHABLE(o) ((AS_GC(o))->gc.gc_refs == GC_REACHABLE)
216 (AS_GC(o))->gc.gc_refs == GC_TENTATIVELY_UNREACHABLE)
223 list->gc.gc_prev = list; in gc_list_init()
224 list->gc.gc_next = list; in gc_list_init()
230 return (list->gc.gc_next == list); in gc_list_is_empty()
239 node->gc.gc_next = list;
240 node->gc.gc_prev = list->gc.gc_prev;
241 node->gc.gc_prev->gc.gc_next = node;
242 list->gc.gc_prev = node;
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgcmodule.c173 #define IS_TRACKED(o) ((AS_GC(o))->gc.gc_refs != GC_UNTRACKED)
174 #define IS_REACHABLE(o) ((AS_GC(o))->gc.gc_refs == GC_REACHABLE)
176 (AS_GC(o))->gc.gc_refs == GC_TENTATIVELY_UNREACHABLE)
183 list->gc.gc_prev = list; in gc_list_init()
184 list->gc.gc_next = list; in gc_list_init()
190 return (list->gc.gc_next == list); in gc_list_is_empty()
199 node->gc.gc_next = list;
200 node->gc.gc_prev = list->gc.gc_prev;
201 node->gc.gc_prev->gc.gc_next = node;
202 list->gc.gc_prev = node;
[all …]
Dgc_weakref.txt5 for that matter) during cyclic gc:
7 Once gc has computed the set of unreachable objects, no Python-level
11 too, and gc can't detect that without starting over. Since gc eventually
43 possibly resurrect an insane object (one for which cyclic gc has called-- or
46 soon as we execute Python code, threads other than the gc thread can run
48 CT while gc is running.
77 Before 2.3.3, Python's cyclic gc didn't pay any attention to weakrefs.
88 cyclic gc that the object is reclaimed, the callback is invoked. If it's
120 during shutdown, during the second call of gc in Py_Finalize, after most
141 *almost* all the weakref callbacks that could get triggered by gc. The
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dobjimpl.h257 } gc; member
273 if (g->gc.gc_refs != _PyGC_REFS_UNTRACKED) \
275 g->gc.gc_refs = _PyGC_REFS_REACHABLE; \
276 g->gc.gc_next = _PyGC_generation0; \
277 g->gc.gc_prev = _PyGC_generation0->gc.gc_prev; \
278 g->gc.gc_prev->gc.gc_next = g; \
279 _PyGC_generation0->gc.gc_prev = g; \
288 assert(g->gc.gc_refs != _PyGC_REFS_UNTRACKED); \
289 g->gc.gc_refs = _PyGC_REFS_UNTRACKED; \
290 g->gc.gc_prev->gc.gc_next = g->gc.gc_next; \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dobjimpl.h257 } gc; member
273 if (g->gc.gc_refs != _PyGC_REFS_UNTRACKED) \
275 g->gc.gc_refs = _PyGC_REFS_REACHABLE; \
276 g->gc.gc_next = _PyGC_generation0; \
277 g->gc.gc_prev = _PyGC_generation0->gc.gc_prev; \
278 g->gc.gc_prev->gc.gc_next = g; \
279 _PyGC_generation0->gc.gc_prev = g; \
288 assert(g->gc.gc_refs != _PyGC_REFS_UNTRACKED); \
289 g->gc.gc_refs = _PyGC_REFS_UNTRACKED; \
290 g->gc.gc_prev->gc.gc_next = g->gc.gc_next; \
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/leakers/
Dtest_dictself.py3 import gc
12 gc.collect(); gc.collect(); gc.collect()
Dtest_selftype.py4 import gc
13 gc.collect(); gc.collect(); gc.collect()
Dtest_ctypes.py6 import gc
16 gc.collect()
DREADME.txt15 gc.collect() ; gc.collect() ; gc.collect()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
Dgc_has_finalizer.py15 import gc
33 gc.collect()
36 gc.collect()
Dgc_inspection.py20 import gc
27 [tup] = [x for x in gc.get_referrers(marker) if type(x) is tuple]
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlobject.h154 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc)
156 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
158 #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u)
160 #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl)
161 #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l)
162 #define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c)
164 #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h)
166 #define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th)
168 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
203 val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); }
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcolorsys.py79 gc = (maxc-g) / (maxc-minc)
82 h = bc-gc
86 h = 4.0+gc-rc
124 gc = (maxc-g) / (maxc-minc)
127 h = bc-gc
131 h = 4.0+gc-rc
Dtimeit.py55 import gc
192 gcold = gc.isenabled()
193 gc.disable()
196 gc.enable()

123