Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8244975: [lworld] Investigate if VM can implement Object::hashCode by calling ValueBootstrapMethods for inline types #136

wants to merge 8 commits into from
@@ -1080,19 +1080,14 @@ private int initCode(JCMethodDecl tree, Env<GenContext> env, boolean fatcode) {

private void synthesizeValueMethod(JCMethodDecl methodDecl) {

Name name; List<Type> argTypes; Type resType;

switch ( {
case "toString":
name = names.toString;
argTypes = List.of(methodDecl.sym.owner.type);
resType = methodDecl.restype.type;
throw new AssertionError("Unexpected synthetic method body");
if (!"toString")) {
throw new AssertionError("Unexpected synthetic method body");

Name name = names.toString;
List<Type> argTypes = List.of(methodDecl.sym.owner.type);
Type resType = methodDecl.restype.type;

Type.MethodType indyType = new Type.MethodType(argTypes,