From 266c6e42e6ed0230c5da58f28701f620b29f17bd Mon Sep 17 00:00:00 2001 From: vlivanov Date: Thu, 18 Sep 2014 18:33:05 +0400 Subject: [PATCH] 8058661: Compiled LambdaForms should inherit from Object to improve class loading performance Reviewed-by: vlivanov, jrose Contributed-by: aleksey.shipilev@oracle.com --- .../classes/java/lang/invoke/InvokerBytecodeGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java b/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java index da78e44ac..cdbbebcbe 100644 --- a/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java +++ b/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java @@ -62,7 +62,7 @@ class InvokerBytecodeGenerator { private static final String CLL_SIG = "(L" + CLS + ";L" + OBJ + ";)L" + OBJ + ";"; /** Name of its super class*/ - private static final String superName = LF; + private static final String superName = OBJ; /** Name of new class */ private final String className; @@ -97,7 +97,7 @@ class InvokerBytecodeGenerator { if (DUMP_CLASS_FILES) { className = makeDumpableClassName(className); } - this.className = superName + "$" + className; + this.className = LF + "$" + className; this.sourceFile = "LambdaForm$" + className; this.lambdaForm = lambdaForm; this.invokerName = invokerName; -- GitLab