8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining
authorredestad
Wed, 28 Sep 2016 14:27:34 +0200
changeset 41208 8a97b5704e66
parent 41207 813a335bcb0c
child 41209 1e31fbc26987
8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining Reviewed-by: vlivanov, mhaupt, forax
jdk/src/java.base/share/classes/java/util/ArrayList.java
--- a/jdk/src/java.base/share/classes/java/util/ArrayList.java	Wed Sep 28 14:02:21 2016 +0200
+++ b/jdk/src/java.base/share/classes/java/util/ArrayList.java	Wed Sep 28 14:27:34 2016 +0200
@@ -876,6 +876,8 @@
         int lastRet = -1; // index of last element returned; -1 if no such
         int expectedModCount = modCount;
 
+        Itr() {}
+
         public boolean hasNext() {
             return cursor != size;
         }