[9] RFR (M): 8069591: Customize LambdaForms which are invoked using MH.invoke/invokeExact

John Rose john.r.rose at oracle.com
Fri Jan 23 18:13:40 UTC 2015

On Jan 23, 2015, at 8:00 AM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> Good idea, Peter!


> Updated version:
> http://cr.openjdk.java.net/~vlivanov/8069591/webrev.02/ <http://cr.openjdk.java.net/~vlivanov/8069591/webrev.02/>

Yes, that's good, and you can count me as a reviewer.  — John

P.S. One could also get rid of the LF.customized field by stuffing both that value and the original LF in the transformCache (as a 2-array), but that's overkill.

P.P.S. A possible generalization to the LF.customized field would be an optional list of type, value, and/or structure constraints for one or more arguments to the LF.  Then we could (a) customize on additional arguments if we thought that were useful, and/or (b) produce semi-custom code that could be shared by more than one MH, if we thought there was an interesting equivalence class of MHs to speed up with common code.

More information about the core-libs-dev mailing list