am 9d8a995f: am af634dae: am 18c077b3: am 08855205: am 77a7e48a: Fix a bug in DefaultHostnameVerifier wildcard handling.
* commit '9d8a995f4e60029decbfbf70cd903bc63048bfcb':
Fix a bug in DefaultHostnameVerifier wildcard handling.
diff --git a/libart/src/main/java/java/lang/Daemons.java b/libart/src/main/java/java/lang/Daemons.java
index 71a8d86..6b3344c 100644
--- a/libart/src/main/java/java/lang/Daemons.java
+++ b/libart/src/main/java/java/lang/Daemons.java
@@ -323,11 +323,9 @@
private static class GCDaemon extends Daemon {
private static final GCDaemon INSTANCE = new GCDaemon();
- private int count = 0;
public void requestGC() {
synchronized (this) {
- ++count;
notify();
}
}
@@ -336,11 +334,8 @@
while (isRunning()) {
try {
synchronized (this) {
- // Wait until a request comes in, unless we have a pending request.
- while (count == 0) {
- wait();
- }
- --count;
+ // Wait until a request comes in.
+ wait();
}
VMRuntime.getRuntime().concurrentGC();
} catch (InterruptedException ignored) {