changeset 11897:b5b00d04e0ad

8166840: Synthetic bridge constructor in ArrayList$Itr blocks inlining Reviewed-by: vlivanov, mhaupt, forax
author igerasim
date Thu, 29 Sep 2016 14:17:14 +0300
parents c1633ff09d4b
children bd0fe971e0e6
files src/share/classes/java/util/ArrayList.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/ArrayList.java	Wed Sep 28 20:56:08 2016 -0400
+++ b/src/share/classes/java/util/ArrayList.java	Thu Sep 29 14:17:14 2016 +0300
@@ -842,6 +842,8 @@
         int lastRet = -1; // index of last element returned; -1 if no such
         int expectedModCount = modCount;
 
+        Itr() {}
+
         public boolean hasNext() {
             return cursor != size;
         }