Home
last modified time | relevance | path

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

12345678910>>...45

/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.py6 import gc
49 gc.collect()
51 self.assertEqual(gc.collect(), 1)
56 gc.collect()
58 self.assertEqual(gc.collect(), 1)
65 gc.collect()
68 self.assertEqual(gc.collect(), 2)
74 gc.collect()
76 self.assertNotEqual(gc.collect(), 0)
81 gc.collect()
[all …]
/external/python/cpython3/Lib/test/
Dtest_gc.py8 import gc
83 gc.collect()
85 self.assertEqual(gc.collect(), 1)
90 gc.collect()
92 self.assertEqual(gc.collect(), 1)
99 gc.collect()
102 self.assertEqual(gc.collect(), 2)
108 gc.collect()
110 self.assertNotEqual(gc.collect(), 0)
115 gc.collect()
[all …]
/external/mesa3d/src/glx/
Dindirect_glx.c50 indirect_destroy_context(struct glx_context *gc) in indirect_destroy_context() argument
52 __glXFreeVertexArrayState(gc); in indirect_destroy_context()
54 free((char *) gc->vendor); in indirect_destroy_context()
55 free((char *) gc->renderer); in indirect_destroy_context()
56 free((char *) gc->version); in indirect_destroy_context()
57 free((char *) gc->extensions); in indirect_destroy_context()
58 __glFreeAttributeState(gc); in indirect_destroy_context()
59 free((char *) gc->buf); in indirect_destroy_context()
60 free((char *) gc->client_state_private); in indirect_destroy_context()
61 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 …]
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 …]
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 …]
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 …]
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 …]
Dglxcmds.c258 glx_context_init(struct glx_context *gc, in glx_context_init() argument
261 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init()
262 if (!gc->majorOpcode) in glx_context_init()
265 gc->screen = psc->scr; in glx_context_init()
266 gc->psc = psc; in glx_context_init()
267 gc->config = config; in glx_context_init()
268 gc->isDirect = GL_TRUE; in glx_context_init()
269 gc->currentContextTag = -1; in glx_context_init()
324 struct glx_context *gc; in CreateContext() local
337 gc = NULL; in CreateContext()
[all …]
Dglxcurrent.c164 struct glx_context *gc = __glXGetCurrentContext(); in glXGetCurrentDrawable() local
165 return gc->currentDrawable; in glXGetCurrentDrawable()
177 struct glx_context *gc = (struct glx_context *) gc_user; in MakeContextCurrent() local
184 if ((gc != NULL) && (gc->xid == None)) { in MakeContextCurrent()
191 if (oldGC == gc && in MakeContextCurrent()
192 gc->currentDrawable == draw && gc->currentReadable == read) { in MakeContextCurrent()
206 oldGC->vtable->unbind(oldGC, gc); in MakeContextCurrent()
211 if (gc) { in MakeContextCurrent()
220 if (gc->vtable->bind(gc, oldGC, draw, read) != Success) { in MakeContextCurrent()
228 if (gc->thread_refcount == 0) { in MakeContextCurrent()
[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 …]
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 …]
Dcreate_context.c44 struct glx_context *gc = NULL; in glXCreateContextAttribsARB() local
78 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
83 if (gc == NULL) { in glXCreateContextAttribsARB()
85 gc = applegl_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB()
87 gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB()
93 gc->xid = xcb_generate_id(c); in glXCreateContextAttribsARB()
94 gc->share_xid = (share != NULL) ? share->xid : 0; in glXCreateContextAttribsARB()
106 gc->xid, in glXCreateContextAttribsARB()
109 gc->share_xid, in glXCreateContextAttribsARB()
110 gc->isDirect, in glXCreateContextAttribsARB()
[all …]
/external/python/cpython3/Modules/
Dgcmodule.c293 PyGC_Head *gc; in gc_list_size() local
295 for (gc = GC_NEXT(list); gc != list; gc = GC_NEXT(gc)) { in gc_list_size()
307 PyGC_Head *gc; in append_objects() local
308 for (gc = GC_NEXT(gc_list); gc != gc_list; gc = GC_NEXT(gc)) { in append_objects()
309 PyObject *op = FROM_GC(gc); in append_objects()
326 PyGC_Head *gc = GC_NEXT(head); in validate_list() local
327 while (gc != head) { in validate_list()
328 assert(GC_NEXT(gc) != NULL); in validate_list()
329 assert(GC_PREV(gc) == prev); in validate_list()
330 assert((gc->_gc_prev & PREV_MASK_COLLECTING) == expected_mask); in validate_list()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DUnicodeSetBuilderTests.txt36 [\p{gc=Nd}] ;
37 [\P{gc=Nd}] ;
38 [\p{gc≠Nd}] ; [\P{gc=Nd}]
39 [\P{gc≠Nd}] ; [\p{gc=Nd}]
43 \p{gc=Nd} ;
44 \P{gc=Nd} ;
45 \p{gc≠Nd} ; \P{gc=Nd}
46 \P{gc≠Nd} ; \p{gc=Nd}
50 [[:gc=Nd:]] ;
51 [[:^gc=Nd:]] ;
[all …]
/external/swiftshader/third_party/llvm-7.0/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/python/cpython3/Include/internal/
Dpycore_object.h34 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_TRACK_impl() local
36 (gc->_gc_prev & _PyGC_PREV_MASK_COLLECTING) == 0, in _PyObject_GC_TRACK_impl()
40 PyGC_Head *last = (PyGC_Head*)(_PyRuntime.gc.generation0->_gc_prev); in _PyObject_GC_TRACK_impl()
41 _PyGCHead_SET_NEXT(last, gc); in _PyObject_GC_TRACK_impl()
42 _PyGCHead_SET_PREV(gc, last); in _PyObject_GC_TRACK_impl()
43 _PyGCHead_SET_NEXT(gc, _PyRuntime.gc.generation0); in _PyObject_GC_TRACK_impl()
44 _PyRuntime.gc.generation0->_gc_prev = (uintptr_t)gc; in _PyObject_GC_TRACK_impl()
66 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_UNTRACK_impl() local
67 PyGC_Head *prev = _PyGCHead_PREV(gc); in _PyObject_GC_UNTRACK_impl()
68 PyGC_Head *next = _PyGCHead_NEXT(gc); in _PyObject_GC_UNTRACK_impl()
[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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/Util/
Dstrip-gc-relocates.ll1 ; RUN: opt -S -strip-gc-relocates -instcombine < %s | FileCheck %s
2 ; test utility/debugging pass which removes gc.relocates, inserted by -rewrite-statepoints-for-gc
3 declare void @use_obj32(i32 addrspace(1)*) "gc-leaf-function"
6 declare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...)
7 declare i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(token, i32, i32) #0
13 ; Simple case: remove gc.relocate
14 define i32 addrspace(1)* @test1(i32 addrspace(1)* %arg) gc "statepoint-example" {
17 ; CHECK: gc.statepoint
18 ; CHECK-NOT: gc.relocate
20 …%statepoint_token = call token (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoin…
[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/swiftshader/third_party/llvm-7.0/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 …]
/external/mesa3d/src/glx/apple/
Dapple_xgl_api_read.c53 struct glx_context *gc = __glXGetCurrentContext(); in SetRead() local
66 if (None != gc->currentReadable in SetRead()
67 && gc->currentReadable != gc->currentDrawable) { in SetRead()
72 if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in SetRead()
73 gc->currentReadable)) { in SetRead()
75 (void) apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in SetRead()
76 gc->currentDrawable); in SetRead()
86 struct glx_context *gc = __glXGetCurrentContext(); in UnsetRead() local
89 if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in UnsetRead()
90 gc->currentDrawable)) { in UnsetRead()
/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 …]

12345678910>>...45