Value type hash code

Paul Sandoz paul.sandoz at oracle.com
Thu Apr 12 01:02:55 UTC 2018



> On Apr 11, 2018, at 1:27 PM, John Rose <john.r.rose at oracle.com> wrote:
> The most I'd like to see in value type classfiles is a one line hashCode (and equals, toString):
> 
>  hashCode() {
>    return indy[Bootstraps::valueHashCode](this)
>  }
> 
> And in fact, I would prefer to have this stereotyped code be inherited (by a new VM feature
> "mindy" = method instance dynamic.)  …That's me wanting to sand down all the corners.
> 

I cannot resist… if all fields are are constant then cindy, mindy’s constant companion :-)

Paul.


More information about the valhalla-dev mailing list