> On Jan 31, 2018, at 3:49 PM, John Rose <john.r.r...@oracle.com> wrote:
> 
> On second thought, you should also use invokeWithArguments to support jumbo 
> arities. 
> 

It does, but non-selectively based on the arity:

 245         return handle.invokeWithArguments(args);


> This tricky idiom should be put into a utility method, package private for 
> starters. A version of it also appears in BSM invocation code. 
> 

Are you in part referring to the approach of switching on the number of 
arguments and using invoke with unpacking for small cases?

If you don’t object i would like to follow up on that with another issue.


>> On Jan 31, 2018, at 3:23 PM, John Rose <john.r.r...@oracle.com> wrote:
>> 
>> If you remove the old asType call it’s good!
>> 


Ah! something went wrong when importing the patch from the amber repo. Updated 
in place.

Paul.

>>> On Jan 31, 2018, at 3:15 PM, Paul Sandoz <paul.san...@oracle.com> wrote:
>>> 
>>> Hi,
>>> 
>>> Please review this fix to the invoke BSM so that it preserves variable 
>>> arity, if any:
>>> 
>>> http://cr.openjdk.java.net/~psandoz/jdk/JDK-8195694-constant-bsms-invoke-arity/webrev/
>>>  
>>> <http://cr.openjdk.java.net/~psandoz/jdk/JDK-8195694-constant-bsms-invoke-arity/webrev/>
>>> 
>>> This will be pushed to the hs repo.
>>> 
>>> Thanks,
>>> Paul.
>> 
> 

Reply via email to