8204194: Lazily create MethodHandleImpl$AsVarargsCollector.asCollectorCache
authorredestad
Fri, 01 Jun 2018 11:34:13 +0200
changeset 50337 4d1393781fef
parent 50336 1b6ea6bcd21a
child 50338 1d5694c1aa03
8204194: Lazily create MethodHandleImpl$AsVarargsCollector.asCollectorCache Reviewed-by: psandoz
src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java	Fri Jun 01 10:15:48 2018 +0200
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java	Fri Jun 01 11:34:13 2018 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -499,7 +499,6 @@
             super(type, target);
             this.target = target;
             this.arrayType = arrayType;
-            this.asCollectorCache = target.asCollector(arrayType, 0);
         }
 
         @Override