Re: What can we improve in JSR292 for Java 9?

2015-02-26 Thread Jochen Theodorou
Am 26.02.2015 01:02, schrieb Charles Oliver Nutter: After talking with folks at the Jfokus VM Summit, it seems like there's a number of nice-to-have and a few need-to-have features we'd like to see get into java.lang.invoke. Vladimir suggested I start a thread on these features. my biggest requ

Re: What can we improve in JSR292 for Java 9?

2015-02-26 Thread MacGregor, Duncan (GE Energy Management)
MH.spreadArguments would certainly be useful from my point of view. We have many cases where we need to take a trailing argument array and turn it into some arguments, and array contain the remainder. This involves a depressing amount of shuffling at the moment, and should be better. On 26/02/2015

[9] RFR (XS): 8073644: Assertion in LambdaFormEditor.bindArgumentType is too strict

2015-02-26 Thread Vladimir Ivanov
http://cr.openjdk.java.net/~vlivanov/8073644/webrev.00 https://bugs.openjdk.java.net/browse/JDK-8073644 After JDK-8069591 [1] which introduced LambdaForm customization, the assert in LambdaFormEditor.bindArgumentType became too strict. The fix is to relax it - compare uncustomized versions. An

Re: Lost perf between 8u40 and 9 hs-comp

2015-02-26 Thread Vladimir Ivanov
Thanks for the report, Charlie! The regression is caused by never-taken branch pruning [1]. -Djava.lang.invoke.MethodHandle.PROFILE_GWT=false makes the regression go away. My main suspicion is that recompilations caused by pruned branches can lead to less efficient code. But I have to dig th