Home
last modified time | relevance | path

Searched refs:weakref (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/clang/test/SemaCXX/
Dattr-weakref.cpp5 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 ha…
19 …static int a __attribute__((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a … in f()
24 …static int a __attribute__((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a …
25 …static int b() __attribute__((weakref ("f3"))); // expected-error {{declaration of 'b' must be in …
27 int a7() __attribute__((weakref ("f1"))); // expected-error {{weakref declaration must have interna…
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dattr-weakref.cpp5 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 ha…
19 …static int a __attribute__((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a … in f()
24 …static int a __attribute__((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a …
25 …static int b() __attribute__((weakref ("f3"))); // expected-error {{declaration of 'b' must be in …
27 int a7() __attribute__((weakref ("f1"))); // expected-error {{weakref declaration must have interna…
[all …]
/external/llvm-project/llvm/test/MC/ELF/
Dweakref.s8 .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 foo9, bar9
42 .weakref foo10, bar10
[all …]
/external/llvm/test/MC/ELF/
Dweakref.s8 .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 foo9, bar9
42 .weakref foo10, bar10
[all …]
/external/python/cpython3/Lib/test/
Dtest_weakref.py5 import weakref
110 wr = weakref.ref(o)
126 wr = weakref.ref(f)
135 ref1 = weakref.ref(o, self.callback)
136 ref2 = weakref.ref(o, self.callback)
157 self.ref = weakref.ref(c, callback)
158 ref1 = weakref.ref(c, callback)
163 self.assertRaises(TypeError, weakref.ref, c, callback=None)
168 ref1 = weakref.proxy(o, self.callback)
169 ref2 = weakref.proxy(o, self.callback)
[all …]
Dtest_finalization.py8 import weakref
172 wr = weakref.ref(s)
186 wr = weakref.ref(s)
263 wr = weakref.ref(s)
278 wr = weakref.ref(s)
299 wr = weakref.ref(s)
370 wrs = [weakref.ref(s) for s in nodes]
386 wrs = [weakref.ref(s) for s in nodes]
488 wr = weakref.ref(s)
503 wr = weakref.ref(s)
[all …]
/external/python/cpython2/Lib/test/
Dtest_weakref.py5 import weakref
106 wr = weakref.ref(o)
120 ref1 = weakref.ref(o, self.callback)
121 ref2 = weakref.ref(o, self.callback)
142 self.ref = weakref.ref(c, callback)
143 ref1 = weakref.ref(c, callback)
148 self.assertRaises(TypeError, weakref.ref, c, callback=None)
153 ref1 = weakref.proxy(o, self.callback)
154 ref2 = weakref.proxy(o, self.callback)
160 self.assertRaises(weakref.ReferenceError, check, ref1)
[all …]
/external/llvm-project/clang/test/CodeGen/
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")));
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")));
/external/clang/test/CodeGen/
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")));
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")));
/external/skqp/src/compute/skc/
Dweakref.c72 skc_weakref_init(skc_weakref_t * const weakref, in skc_weakref_init() argument
76 *weakref = *epoch | (index & SKC_WEAKREF_INDEX_MASK); in skc_weakref_init()
80 skc_weakref_is_invalid(skc_weakref_t const * const weakref, in skc_weakref_is_invalid() argument
83 return ((*weakref ^ *epoch) & SKC_WEAKREF_EPOCH_MASK) != 0UL; in skc_weakref_is_invalid()
87 skc_weakref_index(skc_weakref_t const * const weakref) in skc_weakref_index() argument
90 return (skc_uint)*weakref & SKC_WEAKREF_INDEX_MASK; in skc_weakref_index()
Dweakref.h35 skc_weakref_init(skc_weakref_t * const weakref,
40 skc_weakref_is_invalid(skc_weakref_t const * const weakref,
44 skc_weakref_index(skc_weakref_t const * const weakref);
/external/llvm-project/lld/test/ELF/
Darm-thumb-interwork-shared.s8 .weak weakref
11 b.w weakref
14 bl weakref
/external/python/cpython3/Modules/
Dgc_weakref.txt4 The basic rule for dealing with weakref callbacks (and __del__ methods too,
23 attached to a reachable weakref W to an unreachable object O. Since O is
40 The primary thing it missed is that when a weakref to a piece of cyclic
42 materializing a strong reference to that weakref's CT referent, and so
45 weakref callback or __del__ method does something nasty on purpose: as
98 [That missed that, in addition, a weakref to CT can exist outside CT, and
99 any callback into Python can use such a non-CT weakref to resurrect its CT
108 [Except that a non-CT callback can also use a non-CT weakref to get at
111 More, if the callback itself is in cyclic trash, then the weakref to which
113 reason: if the weakref acted as an external root, then the callback could
[all …]
/external/python/cpython2/Modules/
Dgc_weakref.txt4 The basic rule for dealing with weakref callbacks (and __del__ methods too,
23 attached to a reachable weakref W to an unreachable object O. Since O is
40 The primary thing it missed is that when a weakref to a piece of cyclic
42 materializing a strong reference to that weakref's CT referent, and so
45 weakref callback or __del__ method does something nasty on purpose: as
98 [That missed that, in addition, a weakref to CT can exist outside CT, and
99 any callback into Python can use such a non-CT weakref to resurrect its CT
108 [Except that a non-CT callback can also use a non-CT weakref to get at
111 More, if the callback itself is in cyclic trash, then the weakref to which
113 reason: if the weakref acted as an external root, then the callback could
[all …]
/external/python/cpython2/Modules/_sqlite/
Dconnection.c241 PyObject* weakref; in pysqlite_do_all_statements() local
246 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements()
247 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
259 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements()
260 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
306 PyObject* weakref; in pysqlite_connection_register_cursor() local
308 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor()
309 if (!weakref) { in pysqlite_connection_register_cursor()
313 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
314 Py_CLEAR(weakref); in pysqlite_connection_register_cursor()
[all …]
/external/python/pycparser/tests/
Dtest_c_ast.py5 import weakref
28 wr = weakref.ref(c1)
31 self.assertEqual(weakref.getweakrefcount(c1), 1)
35 wr = weakref.ref(coord)
38 self.assertEqual(weakref.getweakrefcount(coord), 1)
/external/python/cpython3/Modules/_sqlite/
Dconnection.c214 PyObject* weakref; in pysqlite_do_all_statements() local
219 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements()
220 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
234 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements()
235 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
271 PyObject* weakref; in pysqlite_connection_register_cursor() local
273 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor()
274 if (!weakref) { in pysqlite_connection_register_cursor()
278 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
279 Py_CLEAR(weakref); in pysqlite_connection_register_cursor()
[all …]
/external/python/cpython3/Doc/library/
Dweakref.rst1 :mod:`weakref` --- Weak references
4 .. module:: weakref
12 **Source code:** :source:`Lib/weakref.py`
16 The :mod:`weakref` module allows the Python programmer to create :dfn:`weak
40 the :mod:`weakref` module are an alternative, using weak references to construct
64 exposed by the :mod:`weakref` module for the benefit of advanced uses.
89 :ref:`weakref-support`.
98 weakref object is still alive, the callback will be called when the object is
125 weakref. If there is no callback or if the referent of the weakref is
219 >>> r = weakref.ref(c.method)
[all …]
/external/python/dateutil/dateutil/tz/
D_factories.py2 import weakref
25 cls.__instances = weakref.WeakValueDictionary()
52 cls.__instances = weakref.WeakValueDictionary()
/external/python/cpython2/Lib/test/crashers/
Dmutation_inside_cyclegc.py13 import weakref
28 keepalive.append(weakref.ref(a, callback))
Ddecref_before_assignment.py17 import _json, weakref
40 wref = weakref.ref(f, delete_me)
/external/python/cpython3/Lib/test/crashers/
Dmutation_inside_cyclegc.py13 import weakref
28 keepalive.append(weakref.ref(a, callback))
/external/tensorflow/third_party/
Dbackports_weakref.BUILD2 # Backport of new features in Python's weakref module.
12 "backports/weakref.py",

12345678910>>...13