changeset 41208:8a97b5704e66

8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining Reviewed-by: vlivanov, mhaupt, forax
author redestad
date Wed, 28 Sep 2016 14:27:34 +0200
parents 813a335bcb0c
children 1e31fbc26987
files jdk/src/java.base/share/classes/java/util/ArrayList.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }