/external/clang/test/SemaCXX/ |
D | attr-weakref.cpp | 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 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/python/cpython3/Lib/test/ |
D | test_weakref.py | 5 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 …]
|
D | test_finalization.py | 8 import weakref 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.ref(s) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_weakref.py | 5 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/test/MC/ELF/ |
D | weakref.s | 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 foo9, bar9 42 .weakref foo10, bar10 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/ELF/ |
D | weakref.s | 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 foo9, bar9 42 .weakref foo10, bar10 [all …]
|
/external/swiftshader/third_party/LLVM/test/MC/ELF/ |
D | weakref.s | 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 foo9, bar9 42 .weakref foo10, bar10 [all …]
|
/external/clang/test/CodeGen/ |
D | attr-weakref.c | 6 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")));
|
D | attr-weakref2.c | 6 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/skia/src/compute/skc/ |
D | weakref.c | 72 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()
|
D | weakref.h | 35 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/skqp/src/compute/skc/ |
D | weakref.c | 72 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()
|
D | weakref.h | 35 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/python/cpython3/Modules/ |
D | gc_weakref.txt | 4 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/ |
D | gc_weakref.txt | 4 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/ |
D | connection.c | 241 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/cpython3/Modules/_sqlite/ |
D | connection.c | 217 PyObject* weakref; in pysqlite_do_all_statements() local 222 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements() 223 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements() 237 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements() 238 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements() 275 PyObject* weakref; in pysqlite_connection_register_cursor() local 277 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor() 278 if (!weakref) { in pysqlite_connection_register_cursor() 282 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor() 283 Py_CLEAR(weakref); in pysqlite_connection_register_cursor() [all …]
|
/external/python/cpython3/Doc/library/ |
D | weakref.rst | 1 :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. 88 :ref:`weakref-support`. 97 weakref object is still alive, the callback will be called when the object is 124 weakref. If there is no callback or if the referent of the weakref is 224 >>> r = weakref.ref(c.method) [all …]
|
/external/python/cpython2/Doc/library/ |
D | weakref.rst | 1 :mod:`weakref` --- Weak references 4 .. module:: weakref 14 **Source code:** :source:`Lib/weakref.py` 18 The :mod:`weakref` module allows the Python programmer to create :dfn:`weak 39 the :mod:`weakref` module are an alternative, using weak references to construct 53 dictionary implementations is exposed by the :mod:`weakref` module for the 82 :ref:`weakref-support`. 91 weakref object is still alive, the callback will be called when the object is 261 >>> import weakref 266 >>> r = weakref.ref(o) [all …]
|
/external/python/cpython2/Lib/test/crashers/ |
D | mutation_inside_cyclegc.py | 13 import weakref 28 keepalive.append(weakref.ref(a, callback))
|
D | decref_before_assignment.py | 17 import _json, weakref 40 wref = weakref.ref(f, delete_me)
|
/external/python/cpython3/Lib/test/crashers/ |
D | mutation_inside_cyclegc.py | 13 import weakref 28 keepalive.append(weakref.ref(a, callback))
|
/external/python/cpython3/Lib/multiprocessing/dummy/ |
D | __init__.py | 22 import weakref 39 self._children = weakref.WeakKeyDictionary() 66 current_process()._children = weakref.WeakKeyDictionary()
|
/external/python/cpython2/Lib/multiprocessing/dummy/ |
D | __init__.py | 47 import weakref 66 self._children = weakref.WeakKeyDictionary() 97 current_process()._children = weakref.WeakKeyDictionary()
|
/external/python/futures/concurrent/futures/ |
D | thread.py | 11 import weakref 37 _threads_queues = weakref.WeakKeyDictionary() 146 args=(weakref.ref(self, weakref_cb),
|