test/java/lang/ref/EarlyTimeout.java
Print this page
*** 80,90 ****
}
if (thread.reference != null && thread.reference == weakReference) {
nonNullRefCount++;
}
}
! if (nonNullRefCount != 1) {
throw new RuntimeException("more than one references were removed from queue");
}
}
public void run() {
--- 80,90 ----
}
if (thread.reference != null && thread.reference == weakReference) {
nonNullRefCount++;
}
}
! if (nonNullRefCount > 1) {
throw new RuntimeException("more than one references were removed from queue");
}
}
public void run() {