changeset 50941:4d1393781fef

8204194: Lazily create MethodHandleImpl$AsVarargsCollector.asCollectorCache Reviewed-by: psandoz
author redestad
date Fri, 01 Jun 2018 11:34:13 +0200
parents 1b6ea6bcd21a
children 1d5694c1aa03
files src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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