Hidden classes + class data

John Rose john.r.rose at oracle.com
Wed Nov 27 00:55:16 UTC 2019


On Nov 26, 2019, at 3:03 PM, forax at univ-mlv.fr wrote:
> 
> I wonder if defineHiddenClassWithClassData should not take another class as parameter instead of a byte array (using the byte array of that class) enabling more sharing of the bytecode and allowing to do the  verification only once if defineHiddenClassWithClassData is called several times with the same Class.

Yes.  I’d like to try this with templates, when we get them, since
templates are supposed to share metadata with their species.

E.g., for a lambda form of a predefined shape with 2 free variables
(a type and a MH), define it as a template with those parameters
and inject it as many times as you see distinct combinations of
those parameters.


More information about the valhalla-dev mailing list