/libcore/benchmarks/src/benchmarks/ |
ReferenceGetBenchmark.java | 44 Reference weak = new WeakReference(obj); local 46 Object o = weak.get(); 51 Reference weak = new WeakReference(obj); local 55 Object o = weak.get();
|
/art/runtime/jdwp/ |
object_registry.cc | 149 // We must not hold the mutator lock exclusively if we want to delete weak global 151 // 1. GC thread disables access to weak global references, then releases 157 // 4. JDWP thread clears weak global references but need to wait for GC 235 jobject weak = entry.jni_reference; local 238 env->DeleteWeakGlobalRef(weak); 268 // a weak ref and the GC has cleared it.
|
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/ |
enable_shared_from_this.pass.cpp | 125 std::weak_ptr<T> weak; local 129 weak = s; 130 assert(!weak.expired()); 132 assert(weak.expired()); 133 weak.reset();
|
/external/mesa3d/src/mesa/vbo/ |
vbo.h | 51 GLuint weak:1; member in struct:_mesa_prim
|
vbo_save_api.c | 565 GLboolean weak; local 575 weak = save->prim[i].weak; 585 save->prim[0].weak = weak; 1048 save->prim[i].weak = (mode & VBO_SAVE_PRIM_WEAK) ? 1 : 0; [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/util.smartptr/util.smartptr.enab/ |
enable_shared_from_this.pass.cpp | 127 std::weak_ptr<T> weak; local 131 weak = s; 132 assert(!weak.expired()); 134 assert(weak.expired()); 135 weak.reset();
|
/art/test/903-hello-tagging/src/art/ |
Test903.java | 31 WeakReference<Object> weak = test(); local 36 if (weak.get() != null) {
|
/art/runtime/ |
intern_table.cc | 59 os << "Intern table: " << StrongSize() << " strong; " << WeakSize() << " weak\n"; 253 // There is no match in the strong table, check the weak table. 254 ObjPtr<mirror::String> weak = LookupWeakLocked(s); local 255 if (weak != nullptr) { 257 // A match was found in the weak table. Promote to the strong table. 258 RemoveWeak(weak); 259 return InsertStrong(weak); 261 return weak; 263 // No match in the strong table or the weak table. Insert into the strong / weak table [all...] |
/cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/ |
JvmtiTaggingTest.java | 70 WeakReference<Object> weak = test(); local 75 if (weak.get() != null) {
|
/external/skia/src/ports/ |
SkFontMgr_fontconfig.cpp | 182 * However, there is no such call and as of Fc 2.11.0 even FcPatternEquals ignores the weak bit. 183 * Currently, the only reliable way of finding the weak bit is by its effect on matching. 184 * The weak bit only affects the matching of FC_FAMILY and FC_POSTSCRIPT_NAME object values. 185 * A element with the weak bit is scored after FC_LANG, without the weak bit is scored before. 186 * Note that the weak bit is stored on the element, not on the value it holds. 225 SkAutoFcPattern weak; local 226 FcPatternAddString(weak, object, (const FcChar8*)"nomatchstring"); 227 FcPatternAddLangSet(weak, FC_LANG, weakLangSet); 230 FcFontSetAdd(fontSet, weak.release()) [all...] |
/external/skqp/src/ports/ |
SkFontMgr_fontconfig.cpp | 182 * However, there is no such call and as of Fc 2.11.0 even FcPatternEquals ignores the weak bit. 183 * Currently, the only reliable way of finding the weak bit is by its effect on matching. 184 * The weak bit only affects the matching of FC_FAMILY and FC_POSTSCRIPT_NAME object values. 185 * A element with the weak bit is scored after FC_LANG, without the weak bit is scored before. 186 * Note that the weak bit is stored on the element, not on the value it holds. 225 SkAutoFcPattern weak; local 226 FcPatternAddString(weak, object, (const FcChar8*)"nomatchstring"); 227 FcPatternAddLangSet(weak, FC_LANG, weakLangSet); 230 FcFontSetAdd(fontSet, weak.release()) [all...] |
/frameworks/base/core/java/android/os/ |
FileObserver.java | 111 WeakReference weak = m_observers.get(wfd); local 112 if (weak != null) { // can happen with lots of events from a dead wfd 113 observer = (FileObserver) weak.get();
|
/toolchain/binutils/binutils-2.27/gold/testsuite/ |
plugin_test.c | 265 int weak; local 328 weak = strncmp(info.bind, "WEAK", 4) == 0; 330 def = weak ? LDPK_WEAKUNDEF : LDPK_UNDEF; 334 def = weak ? LDPK_WEAKDEF : LDPK_DEF;
|
/art/test/074-gc-thrash/src/ |
Main.java | 201 private static WeakReference weak[] = new WeakReference[MAX_DEPTH]; field in class:Deep 223 * Wipe "strong", do a GC, see if "weak" got collected. 231 if (weak[i].get() != null) { 232 System.out.println("Deep: weak still has " + i); 243 * "weak" should be matched in "strong", and the two should be 253 if (strong[i] != weak[i].get()) { 255 ", weak=" + weak[i].get()); 304 weak[depth] = new WeakReference(funStr);
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
AhatInstance.java | 171 * soft/weak/phantom/finalizer reference. An object is weakly reachable if 189 * object, neither through strong nor soft/weak/phantom/finalizer 388 * Returns a list of objects with soft/weak/phantom/finalizer references to 514 * include a soft/weak/phantom/finalizer reference somewhere along it. 609 // Then continue the breadth first search through weak references. 611 Queue<Reference> weak = new ArrayDeque<Reference>(); local 631 weak.add(childRef); 644 while (!weak.isEmpty()) { 645 Reference ref = weak.poll(); 654 weak.add(childRef) [all...] |
/external/golang-protobuf/protoc-gen-go/generator/ |
generator.go | 1308 func (g *Generator) weak(i int32) bool { func [all...] |
/art/tools/ahat/src/test/com/android/ahat/ |
InstanceTest.java | 281 // references, not the shorter chain with weak references (even though the 383 // The weak reference points to Main.class, which we expect will be marked 389 // We had a bug in the past where weak references to GC roots caused the 398 // weak reference, then all of the objects should be considered weakly 416 AhatInstance weak = dump.getDumpedAhatInstance("aWeakReference"); local 418 assertFalse(obj.getHardReverseReferences().contains(weak)); 420 assertTrue(obj.getSoftReverseReferences().contains(weak));
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
lgc.c | 115 ** tells whether a key or value can be cleared from a weak 116 ** table. Non-collectable objects are never removed from weak 124 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ 339 g->weak = g->allweak = g->ephemeron = NULL; 372 linktable(h, &g->weak); /* has to be cleared later */ 438 if (mode && ttisstring(mode) && /* is there a weak mode? */ 441 (weakkey || weakvalue))) { /* is really weak? */ 447 else /* all weak */ 450 else /* not weak */ 583 GCObject *weak = g->weak; /* save original lists * local [all...] |
lstate.h | 133 GCObject *weak; /* list of tables with weak values */ member in struct:global_State 134 GCObject *ephemeron; /* list of ephemeron tables (weak keys) */ 135 GCObject *allweak; /* list of all-weak tables */
|
/external/syslinux/com32/lua/src/ |
lgc.c | 115 ** tells whether a key or value can be cleared from a weak 116 ** table. Non-collectable objects are never removed from weak 124 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ 339 g->weak = g->allweak = g->ephemeron = NULL; 372 linktable(h, &g->weak); /* has to be cleared later */ 438 if (mode && ttisstring(mode) && /* is there a weak mode? */ 441 (weakkey || weakvalue))) { /* is really weak? */ 447 else /* all weak */ 450 else /* not weak */ 583 GCObject *weak = g->weak; /* save original lists * local [all...] |
lstate.h | 133 GCObject *weak; /* list of tables with weak values */ member in struct:global_State 134 GCObject *ephemeron; /* list of ephemeron tables (weak keys) */ 135 GCObject *allweak; /* list of all-weak tables */
|
/external/webrtc/webrtc/p2p/base/ |
p2ptransportchannel.cc | 1151 bool P2PTransportChannel::weak() const { function in class:cricket::P2PTransportChannel [all...] |
port.h | 451 bool weak() const { return !(writable() && receiving() && connected()); } function in class:cricket::Connection
|
/frameworks/native/libs/binder/tests/ |
binderLibTest.cpp | 768 wp<IBinder> weak = strong; local 769 sp<IBinder> strong_from_weak = weak.promote(); 774 strong_from_weak = weak.promote(); 819 data.writeBool(false); /* request weak reference */ 824 /* Add a weak ref to the freed binder so the driver does not 1143 wp<IBinder> weak; local [all...] |
/external/opencv/ml/include/ |
ml.h | 1129 CvSeq* weak; member in class:CvBoost [all...] |