Searched refs:weak (Results 1 - 3 of 3) sorted by relevance

/art/test/074-gc-thrash/src/
H A DMain.java202 private static WeakReference weak[] = new WeakReference[MAX_DEPTH]; field in class:Deep
224 * Wipe "strong", do a GC, see if "weak" got collected.
232 if (weak[i].get() != null) {
233 System.err.println("Deep: weak still has " + i);
244 * "weak" should be matched in "strong", and the two should be
254 if (strong[i] != weak[i].get()) {
256 ", weak=" + weak[i].get());
305 weak[depth] = new WeakReference(funStr);
/art/runtime/
H A Dintern_table.cc54 os << "Intern table: " << StrongSize() << " strong; " << WeakSize() << " weak\n";
248 // There is no match in the strong table, check the weak table.
249 mirror::String* weak = LookupWeak(s); local
250 if (weak != nullptr) {
252 // A match was found in the weak table. Promote to the strong table.
253 RemoveWeak(weak);
254 return InsertStrong(weak);
256 return weak;
263 // No match in the strong table or the weak table. Insert into the strong / weak tabl
[all...]
/art/runtime/jdwp/
H A Dobject_registry.cc140 // We must not hold the mutator lock exclusively if we want to delete weak global
142 // 1. GC thread disables access to weak global references, then releases
148 // 4. JDWP thread clears weak global references but need to wait for GC
226 jobject weak = entry.jni_reference; local
229 env->DeleteWeakGlobalRef(weak);
259 // a weak ref and the GC has cleared it.

Completed in 65 milliseconds