Home
last modified time | relevance | path

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

12345678910>>...36

/external/tensorflow/tensorflow/contrib/session_bundle/
Dgc_test.py26 from tensorflow.contrib.session_bundle import gc
35 paths = [gc.Path("/foo", 8), gc.Path("/foo", 9), gc.Path("/foo", 10)]
36 newest = gc.largest_export_versions(2)
38 self.assertEquals(n, [gc.Path("/foo", 9), gc.Path("/foo", 10)])
41 paths = [gc.Path("/foo", 0), gc.Path("/foo", 3)]
42 newest = gc.largest_export_versions(2)
44 self.assertEquals(n, [gc.Path("/foo", 0), gc.Path("/foo", 3)])
48 gc.Path("/foo", 4), gc.Path("/foo", 5), gc.Path("/foo", 6),
49 gc.Path("/foo", 9)
51 mod = gc.mod_export_version(2)
[all …]
/external/tensorflow/tensorflow/python/estimator/
Dgc_test.py26 from tensorflow.python.estimator import gc
54 paths = [gc.Path("/foo", 8), gc.Path("/foo", 9), gc.Path("/foo", 10)]
55 newest = gc._largest_export_versions(2)
57 self.assertEqual(n, [gc.Path("/foo", 9), gc.Path("/foo", 10)])
60 paths = [gc.Path("/foo", 0), gc.Path("/foo", 3)]
61 newest = gc._largest_export_versions(2)
63 self.assertEqual(n, [gc.Path("/foo", 0), gc.Path("/foo", 3)])
67 gc.Path("/foo", 4), gc.Path("/foo", 5), gc.Path("/foo", 6),
68 gc.Path("/foo", 9)
70 mod = gc._mod_export_version(2)
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
Dgc_test.py26 from tensorflow.contrib.learn.python.learn.utils import gc
54 paths = [gc.Path("/foo", 8), gc.Path("/foo", 9), gc.Path("/foo", 10)]
55 newest = gc.largest_export_versions(2)
57 self.assertEqual(n, [gc.Path("/foo", 9), gc.Path("/foo", 10)])
60 paths = [gc.Path("/foo", 0), gc.Path("/foo", 3)]
61 newest = gc.largest_export_versions(2)
63 self.assertEqual(n, [gc.Path("/foo", 0), gc.Path("/foo", 3)])
67 gc.Path("/foo", 4),
68 gc.Path("/foo", 5),
69 gc.Path("/foo", 6),
[all …]
/external/python/cpython2/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 …]
/external/python/cpython2/Lib/test/
Dtest_gc.py5 import gc
48 gc.collect()
50 self.assertEqual(gc.collect(), 1)
55 gc.collect()
57 self.assertEqual(gc.collect(), 1)
64 gc.collect()
67 self.assertEqual(gc.collect(), 2)
73 gc.collect()
75 self.assertNotEqual(gc.collect(), 0)
80 gc.collect()
[all …]
/external/python/cpython3/Modules/
Dgcmodule.c237 list->gc.gc_prev = list; in gc_list_init()
238 list->gc.gc_next = list; in gc_list_init()
244 return (list->gc.gc_next == list); in gc_list_is_empty()
253 node->gc.gc_next = list;
254 node->gc.gc_prev = list->gc.gc_prev;
255 node->gc.gc_prev->gc.gc_next = node;
256 list->gc.gc_prev = node;
264 node->gc.gc_prev->gc.gc_next = node->gc.gc_next; in gc_list_remove()
265 node->gc.gc_next->gc.gc_prev = node->gc.gc_prev; in gc_list_remove()
266 node->gc.gc_next = NULL; /* object is not currently tracked */ in gc_list_remove()
[all …]
/external/python/cpython3/Lib/test/
Dtest_gc.py9 import gc
76 gc.collect()
78 self.assertEqual(gc.collect(), 1)
83 gc.collect()
85 self.assertEqual(gc.collect(), 1)
92 gc.collect()
95 self.assertEqual(gc.collect(), 2)
101 gc.collect()
103 self.assertNotEqual(gc.collect(), 0)
108 gc.collect()
[all …]
/external/mesa3d/src/glx/
Dindirect_glx.c46 indirect_destroy_context(struct glx_context *gc) in indirect_destroy_context() argument
48 __glXFreeVertexArrayState(gc); in indirect_destroy_context()
50 free((char *) gc->vendor); in indirect_destroy_context()
51 free((char *) gc->renderer); in indirect_destroy_context()
52 free((char *) gc->version); in indirect_destroy_context()
53 free((char *) gc->extensions); in indirect_destroy_context()
54 __glFreeAttributeState(gc); in indirect_destroy_context()
55 free((char *) gc->buf); in indirect_destroy_context()
56 free((char *) gc->client_state_private); in indirect_destroy_context()
57 free((char *) gc); in indirect_destroy_context()
[all …]
Dapplegl_glx.c46 applegl_destroy_context(struct glx_context *gc) in applegl_destroy_context() argument
48 apple_glx_destroy_context(&gc->driContext, gc->psc->dpy); in applegl_destroy_context()
52 applegl_bind_context(struct glx_context *gc, struct glx_context *old, in applegl_bind_context() argument
55 Display *dpy = gc->psc->dpy; in applegl_bind_context()
58 gc ? gc->driContext : NULL, draw); in applegl_bind_context()
70 applegl_unbind_context(struct glx_context *gc, struct glx_context *new) in applegl_unbind_context() argument
76 if (!gc) in applegl_unbind_context()
83 dpy = gc->psc->dpy; in applegl_unbind_context()
86 (gc != &dummyContext) ? gc->driContext : NULL, in applegl_unbind_context()
93 applegl_wait_gl(struct glx_context *gc) in applegl_wait_gl() argument
[all …]
Dindirect_vertex_array.c87 static GLboolean validate_mode(struct glx_context * gc, GLenum mode);
88 static GLboolean validate_count(struct glx_context * gc, GLsizei count);
89 static GLboolean validate_type(struct glx_context * gc, GLenum type);
112 __glXFreeVertexArrayState(struct glx_context * gc) in __glXFreeVertexArrayState() argument
114 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXFreeVertexArrayState()
140 __glXInitVertexArrayState(struct glx_context * gc) in __glXInitVertexArrayState() argument
142 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXInitVertexArrayState()
157 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXInitVertexArrayState()
180 if (__glExtensionBitIsEnabled(gc, GL_EXT_fog_coord_bit) in __glXInitVertexArrayState()
181 || (gc->server_major > 1) || (gc->server_minor >= 4)) { in __glXInitVertexArrayState()
[all …]
Dpixelstore.c50 send_PixelStore(struct glx_context * gc, unsigned sop, GLenum pname, in send_PixelStore() argument
53 Display *const dpy = gc->currentDpy; in send_PixelStore()
56 GLubyte const *pc = __glXSetupSingleRequest(gc, sop, cmdlen); in send_PixelStore()
71 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPixelStoref() local
72 __GLXattribute *state = gc->client_state_private; in __indirect_glPixelStoref()
73 Display *dpy = gc->currentDpy; in __indirect_glPixelStoref()
83 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref()
91 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref()
99 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref()
107 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref()
[all …]
Dsingle2.c131 if (gc->error) { in __indirect_glGetError()
133 retval = gc->error; in __indirect_glGetError()
134 gc->error = GL_NO_ERROR; in __indirect_glGetError()
155 get_client_data(struct glx_context * gc, GLenum cap, GLintptr * data) in get_client_data() argument
158 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in get_client_data()
297 *data = (GLintptr) (gc->attributes.stackPointer - gc->attributes.stack); in get_client_data()
345 if (get_client_data(gc, val, &data)) { in __indirect_glGetBooleanv()
396 if (get_client_data(gc, val, &data)) { in __indirect_glGetDoublev()
447 if (get_client_data(gc, val, &data)) { in __indirect_glGetFloatv()
498 if (get_client_data(gc, val, &data)) { in __indirect_glGetIntegerv()
[all …]
Dglxcurrent.c164 struct glx_context *gc = __glXGetCurrentContext(); in glXGetCurrentDrawable() local
165 return gc->currentDrawable; in glXGetCurrentDrawable()
192 struct glx_context *gc = (struct glx_context *) gc_user; in MakeContextCurrent() local
199 if ((gc != NULL) && (gc->xid == None)) { in MakeContextCurrent()
206 if (oldGC == gc && in MakeContextCurrent()
207 gc->currentDrawable == draw && gc->currentReadable == read) { in MakeContextCurrent()
214 oldGC->vtable->unbind(oldGC, gc); in MakeContextCurrent()
219 if (gc) { in MakeContextCurrent()
228 if (gc->vtable->bind(gc, oldGC, draw, read) != Success) { in MakeContextCurrent()
235 if (gc->thread_refcount == 0) { in MakeContextCurrent()
[all …]
Dglxcmds.c254 glx_context_init(struct glx_context *gc, in glx_context_init() argument
257 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init()
258 if (!gc->majorOpcode) in glx_context_init()
261 gc->screen = psc->scr; in glx_context_init()
262 gc->psc = psc; in glx_context_init()
263 gc->config = config; in glx_context_init()
264 gc->isDirect = GL_TRUE; in glx_context_init()
265 gc->currentContextTag = -1; in glx_context_init()
282 struct glx_context *gc; in CreateContext() local
295 gc = NULL; in CreateContext()
[all …]
Dclientattrib.c42 struct glx_context *gc = __glXGetCurrentContext(); in do_enable_disable() local
43 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in do_enable_disable()
51 __glXSetError(gc, GL_INVALID_ENUM); in do_enable_disable()
72 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPushClientAttrib() local
73 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glPushClientAttrib()
74 __GLXattribute **spp = gc->attributes.stackPointer, *sp; in __indirect_glPushClientAttrib()
76 if (spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]) { in __indirect_glPushClientAttrib()
80 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glPushClientAttrib()
86 gc->attributes.stackPointer = spp + 1; in __indirect_glPushClientAttrib()
96 __glXSetError(gc, GL_STACK_OVERFLOW); in __indirect_glPushClientAttrib()
[all …]
Drenderpix.c81 __glXSendLargeImage(struct glx_context * gc, GLint compsize, GLint dim, in __glXSendLargeImage() argument
89 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXSendLargeImage()
95 (*gc->fillImage) (gc, dim, width, height, depth, format, type, in __glXSendLargeImage()
108 __glXSendLargeCommand(gc, gc->pc, pc - gc->pc, buf, compsize); in __glXSendLargeImage()
136 if (!gc->currentDpy) in __indirect_glSeparableFilter2D()
139 if (cmdlen <= gc->maxSmallRenderCommandSize) { in __indirect_glSeparableFilter2D()
150 (*gc->fillImage) (gc, 1, width, 1, 1, format, type, in __indirect_glSeparableFilter2D()
155 (*gc->fillImage) (gc, 1, height, 1, 1, format, type, in __indirect_glSeparableFilter2D()
183 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glSeparableFilter2D()
186 (*gc->fillImage) (gc, 1, width, 1, 1, format, type, row, buf, in __indirect_glSeparableFilter2D()
[all …]
Drender2.c53 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glMap1d()
57 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glMap1d()
62 if (!gc->currentDpy) in __indirect_glMap1d()
65 if (cmdlen <= gc->maxSmallRenderCommandSize) { in __indirect_glMap1d()
96 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glMap1d()
100 __glXSendLargeCommand(gc, pc, 32, buf, compsize); in __indirect_glMap1d()
105 __glXSendLargeCommand(gc, pc, 32, pnts, compsize); in __indirect_glMap1d()
120 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glMap1f()
124 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glMap1f()
129 if (!gc->currentDpy) in __indirect_glMap1f()
[all …]
Dindirect_vertex_program.c40 struct glx_context *gc = __glXGetCurrentContext(); in do_vertex_attrib_enable() local
41 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in do_vertex_attrib_enable()
45 __glXSetError(gc, GL_INVALID_ENUM); in do_vertex_attrib_enable()
68 struct glx_context *const gc = __glXGetCurrentContext(); in get_parameter() local
69 Display *const dpy = gc->currentDpy; in get_parameter()
73 GLubyte const *pc = __glXSetupVendorRequest(gc, in get_parameter()
125 struct glx_context *const gc = __glXGetCurrentContext(); in __indirect_glGetVertexAttribPointerv() local
126 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glGetVertexAttribPointerv()
129 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glGetVertexAttribPointerv()
134 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glGetVertexAttribPointerv()
[all …]
/external/llvm/test/CodeGen/X86/
Dstatepoint-call-lowering.ll3 ; screw up normal call lowering when there are no deopt or gc arguments.
17 define i1 @test_i1_return() gc "statepoint-example" {
26 …%safepoint_token = tail call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepo…
27 %call1 = call zeroext i1 @llvm.experimental.gc.result.i1(token %safepoint_token)
31 define i32 @test_i32_return() gc "statepoint-example" {
38 …%safepoint_token = tail call token (i64, i32, i32 ()*, i32, i32, ...) @llvm.experimental.gc.statep…
39 %call1 = call zeroext i32 @llvm.experimental.gc.result.i32(token %safepoint_token)
43 define i32* @test_i32ptr_return() gc "statepoint-example" {
50 …%safepoint_token = tail call token (i64, i32, i32* ()*, i32, i32, ...) @llvm.experimental.gc.state…
51 %call1 = call i32* @llvm.experimental.gc.result.p0i32(token %safepoint_token)
[all …]
Dstatepoint-gctransition-call-lowering.ll15 define i1 @test_i1_return() gc "statepoint-example" {
24 …%safepoint_token = tail call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepo…
25 %call1 = call zeroext i1 @llvm.experimental.gc.result.i1(token %safepoint_token)
29 define i32 @test_i32_return() gc "statepoint-example" {
36 …%safepoint_token = tail call token (i64, i32, i32 ()*, i32, i32, ...) @llvm.experimental.gc.statep…
37 %call1 = call zeroext i32 @llvm.experimental.gc.result.i32(token %safepoint_token)
41 define i32* @test_i32ptr_return() gc "statepoint-example" {
48 …%safepoint_token = tail call token (i64, i32, i32* ()*, i32, i32, ...) @llvm.experimental.gc.state…
49 %call1 = call i32* @llvm.experimental.gc.result.p0i32(token %safepoint_token)
53 define float @test_float_return() gc "statepoint-example" {
[all …]
/external/llvm/test/CodeGen/Generic/
Doverloaded-intrinsic-name.ll9 ; Exercise the most general case, llvm_anyptr_type, using gc.relocate
10 ; and gc.statepoint. Note that it has nothing to do with gc.*
15 define i32* @test_iAny(i32* %v) gc "statepoint-example" {
16 …%tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0…
17 %v-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
22 define float* @test_fAny(float* %v) gc "statepoint-example" {
23 …%tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0…
24 %v-new = call float* @llvm.experimental.gc.relocate.p0f32(token %tok, i32 7, i32 7)
29 define [3 x i32]* @test_aAny([3 x i32]* %v) gc "statepoint-example" {
30 …%tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0…
[all …]
/external/icu/icu4c/source/samples/datecal/
Dcal.cpp26 GregorianCalendar* gc = new GregorianCalendar(status); in cpp_main() local
32 gc->set(2000, UCAL_FEBRUARY, 26); in cpp_main()
33 gc->set(UCAL_HOUR_OF_DAY, 23); in cpp_main()
34 gc->set(UCAL_MINUTE, 0); in cpp_main()
35 gc->set(UCAL_SECOND, 0); in cpp_main()
36 gc->set(UCAL_MILLISECOND, 0); in cpp_main()
42 gc->get(UCAL_YEAR, status), in cpp_main()
43 gc->get(UCAL_MONTH, status) + 1, in cpp_main()
44 gc->get(UCAL_MONTH, status), in cpp_main()
45 gc->get(UCAL_DATE, status)); in cpp_main()
[all …]
/external/llvm/test/Transforms/CodeGenPrepare/
Dstatepoint-relocate.ll8 define i32 @test_sor_basic(i32* %base) gc "statepoint-example" {
13 …%tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0…
14 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
15 %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 8)
20 define i32 @test_sor_two_derived(i32* %base) gc "statepoint-example" {
28 …%tok = call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0…
29 %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 7)
30 %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 8)
31 %ptr2-new = call i32* @llvm.experimental.gc.relocate.p0i32(token %tok, i32 7, i32 9)
36 define i32 @test_sor_ooo(i32* %base) gc "statepoint-example" {
[all …]
/external/v8/tools/clang/blink_gc_plugin/tests/legacy_naming/
Dfields_illegal_tracing.txt2 ./fields_illegal_tracing.h:32:1: warning: [blink-gc] Class 'PartObject' contains invalid fields.
5 ./fields_illegal_tracing.h:37:5: note: [blink-gc] OwnPtr field 'm_obj1' to a GC managed class decla…
8 ./fields_illegal_tracing.h:38:5: note: [blink-gc] RefPtr field 'm_obj2' to a GC managed class decla…
11 ./fields_illegal_tracing.h:40:5: note: [blink-gc] std::unique_ptr field 'm_obj4' to a GC managed cl…
14 ./fields_illegal_tracing.h:42:5: note: [blink-gc] Iterator field 'm_iterator2' to a GC managed coll…
17 ./fields_illegal_tracing.h:43:5: note: [blink-gc] Iterator field 'm_iterator3' to a GC managed coll…
20 ./fields_illegal_tracing.h:46:1: warning: [blink-gc] Class 'HeapObject' contains invalid fields.
23 ./fields_illegal_tracing.h:51:5: note: [blink-gc] OwnPtr field 'm_obj1' to a GC managed class decla…
26 ./fields_illegal_tracing.h:52:5: note: [blink-gc] RefPtr field 'm_obj2' to a GC managed class decla…
29 ./fields_illegal_tracing.h:54:5: note: [blink-gc] std::unique_ptr field 'm_obj4' to a GC managed cl…
[all …]
/external/v8/tools/clang/blink_gc_plugin/tests/
Dfields_illegal_tracing.txt2 ./fields_illegal_tracing.h:32:1: warning: [blink-gc] Class 'PartObject' contains invalid fields.
5 ./fields_illegal_tracing.h:37:5: note: [blink-gc] OwnPtr field 'm_obj1' to a GC managed class decla…
8 ./fields_illegal_tracing.h:38:5: note: [blink-gc] RefPtr field 'm_obj2' to a GC managed class decla…
11 ./fields_illegal_tracing.h:40:5: note: [blink-gc] std::unique_ptr field 'm_obj4' to a GC managed cl…
14 ./fields_illegal_tracing.h:42:5: note: [blink-gc] Iterator field 'm_iterator2' to a GC managed coll…
17 ./fields_illegal_tracing.h:43:5: note: [blink-gc] Iterator field 'm_iterator3' to a GC managed coll…
20 ./fields_illegal_tracing.h:46:1: warning: [blink-gc] Class 'HeapObject' contains invalid fields.
23 ./fields_illegal_tracing.h:51:5: note: [blink-gc] OwnPtr field 'm_obj1' to a GC managed class decla…
26 ./fields_illegal_tracing.h:52:5: note: [blink-gc] RefPtr field 'm_obj2' to a GC managed class decla…
29 ./fields_illegal_tracing.h:54:5: note: [blink-gc] std::unique_ptr field 'm_obj4' to a GC managed cl…
[all …]

12345678910>>...36