8204194: Lazily create MethodHandleImpl$AsVarargsCollector.asCollectorCache
Reviewed-by: psandoz
--- 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