Searched refs:weakref (Results 1 - 25 of 142) sorted by relevance

123456

/external/clang/test/SemaCXX/
H A Dattr-weakref.cpp3 // GCC will accept anything as the argument of weakref. Should we
5 static int a1() __attribute__((weakref ("foo")));
6 static int a2() __attribute__((weakref, alias ("foo")));
8 static int a3 __attribute__((weakref ("foo")));
9 static int a4 __attribute__((weakref, alias ("foo")));
12 static int a5 __attribute__((alias ("foo"), weakref));
15 static int a6 __attribute__((weakref)); //expected-error {{weakref declaration of 'a6' must also have an alias attribute}}
19 static int a __attribute__((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a global context}}
24 static int a __attribute__((weakref ("v
[all...]
/external/llvm/test/MC/ELF/
H A Dweakref-plt.s3 .weakref bar,foo
H A Dweakref.s3 // This is a long test that checks that the aliases created by weakref are
8 .weakref foo1, bar1
10 .weakref foo2, bar2
13 .weakref foo3, bar3
16 .weakref foo4, bar4
20 .weakref foo5, bar5
25 .weakref foo6, bar6
28 .weakref foo7, bar7
32 .weakref foo8, bar8
36 .weakref foo
[all...]
H A Dweakref-reloc.s5 .weakref bar,foo
/external/swiftshader/third_party/LLVM/test/MC/ELF/
H A Dweakref-plt.s3 .weakref bar,foo
H A Dweakref.s3 // This is a long test that checks that the aliases created by weakref are
8 .weakref foo1, bar1
10 .weakref foo2, bar2
13 .weakref foo3, bar3
16 .weakref foo4, bar4
20 .weakref foo5, bar5
25 .weakref foo6, bar6
28 .weakref foo7, bar7
32 .weakref foo8, bar8
36 .weakref foo
[all...]
H A Dweakref-reloc.s6 .weakref bar,foo
/external/clang/test/CodeGen/
H A Dattr-weakref2.c6 static int test1_g __attribute__((weakref("test1_f")));
13 static int test2_g __attribute__((weakref("test2_f")));
20 static int test3_g __attribute__((weakref("test3_f")));
30 static int test4_g __attribute__((weakref("test4_f")));
38 static int test5_g __attribute__((weakref("test5_f")));
48 static int test6_g __attribute__((weakref("test6_f")));
H A Dattr-weakref.c6 static void test1_g(void) __attribute__((weakref("test1_f")));
13 static void test2_g(void) __attribute__((weakref("test2_f")));
20 static void test3_g(void) __attribute__((weakref("test3_f")));
30 static void test4_g(void) __attribute__((weakref("test4_f")));
38 static void test5_g(void) __attribute__((weakref("test5_f")));
48 static void test6_g(void) __attribute__((weakref("test6_f")));
57 static void test8_g(void) __attribute__((weakref("test8_f")));
64 static void test7_g(void) __attribute__((weakref("test7_f")));
H A Dalias.c67 static __typeof(inner_weak) inner_weak_a __attribute__((weakref, alias("inner_weak")));
/external/python/cpython2/Lib/test/crashers/
H A Dmutation_inside_cyclegc.py4 # Moreover, it can invoke arbitrary Python code via a weakref callback.
13 import weakref namespace
28 keepalive.append(weakref.ref(a, callback))
H A Ddecref_before_assignment.py9 weakref callback, it will run while the 'obj' appears to have in
17 import _json, weakref namespace
40 wref = weakref.ref(f, delete_me)
/external/python/cpython3/Lib/test/crashers/
H A Dmutation_inside_cyclegc.py4 # Moreover, it can invoke arbitrary Python code via a weakref callback.
13 import weakref namespace
28 keepalive.append(weakref.ref(a, callback))
/external/python/cpython2/Lib/test/
H A Dtest_weakref.py5 import weakref namespace
79 wr = weakref.ref(o)
93 ref1 = weakref.ref(o, self.callback)
94 ref2 = weakref.ref(o, self.callback)
115 self.ref = weakref.ref(c, callback)
116 ref1 = weakref.ref(c, callback)
121 self.assertRaises(TypeError, weakref.ref, c, callback=None)
126 ref1 = weakref.proxy(o, self.callback)
127 ref2 = weakref.proxy(o, self.callback)
133 self.assertRaises(weakref
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_weakref.py5 import weakref namespace
109 wr = weakref.ref(o)
125 wr = weakref.ref(f)
134 ref1 = weakref.ref(o, self.callback)
135 ref2 = weakref.ref(o, self.callback)
156 self.ref = weakref.ref(c, callback)
157 ref1 = weakref.ref(c, callback)
162 self.assertRaises(TypeError, weakref.ref, c, callback=None)
167 ref1 = weakref.proxy(o, self.callback)
168 ref2 = weakref
[all...]
H A Dtest_finalization.py8 import weakref namespace
155 wr = weakref.ref(s)
169 wr = weakref.ref(s)
244 wr = weakref.ref(s)
259 wr = weakref.ref(s)
280 wr = weakref.ref(s)
351 wrs = [weakref.ref(s) for s in nodes]
367 wrs = [weakref.ref(s) for s in nodes]
469 wr = weakref.ref(s)
484 wr = weakref
[all...]
H A Dtest_frame.py5 import weakref namespace
37 wr = weakref.ref(c)
105 wr = weakref.ref(c)
/external/python/cpython2/Lib/unittest/
H A Dsignals.py2 import weakref namespace
41 _results = weakref.WeakKeyDictionary()
/external/python/cpython3/Lib/unittest/
H A Dsignals.py2 import weakref namespace
41 _results = weakref.WeakKeyDictionary()
/external/python/cpython2/Lib/multiprocessing/dummy/
H A D__init__.py47 import weakref namespace
66 self._children = weakref.WeakKeyDictionary()
97 current_process()._children = weakref.WeakKeyDictionary()
/external/python/cpython3/Lib/multiprocessing/dummy/
H A D__init__.py22 import weakref namespace
39 self._children = weakref.WeakKeyDictionary()
63 current_process()._children = weakref.WeakKeyDictionary()
/external/clang/test/Parser/
H A Dcxx11-stmt-attributes.cpp55 [[weakref]] return; // expected-warning {{unknown attribute 'weakref' ignored}}
/external/python/cpython2/Modules/_sqlite/
H A Dconnection.c241 PyObject* weakref; local
246 weakref = PyList_GetItem(self->statements, i);
247 statement = PyWeakref_GetObject(weakref);
259 weakref = PyList_GetItem(self->cursors, i);
260 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref);
306 PyObject* weakref; local
308 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL);
309 if (!weakref) {
313 if (PyList_Append(connection->cursors, weakref) != 0) {
314 Py_CLEAR(weakref);
802 PyObject* weakref; local
833 PyObject* weakref; local
1194 PyObject* weakref; local
[all...]
/external/python/cpython3/Modules/_sqlite/
H A Dconnection.c208 PyObject* weakref; local
213 weakref = PyList_GetItem(self->statements, i);
214 statement = PyWeakref_GetObject(weakref);
228 weakref = PyList_GetItem(self->cursors, i);
229 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref);
266 PyObject* weakref; local
268 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL);
269 if (!weakref) {
273 if (PyList_Append(connection->cursors, weakref) != 0) {
274 Py_CLEAR(weakref);
761 PyObject* weakref; local
792 PyObject* weakref; local
1215 PyObject* weakref; local
[all...]
/external/python/cpython3/Lib/concurrent/futures/
H A Dthread.py12 import weakref namespace
29 _threads_queues = weakref.WeakKeyDictionary()
120 # When the executor gets lost, the weakref callback will wake up
131 args=(weakref.ref(self, weakref_cb),

Completed in 568 milliseconds

123456