< prev index next >

src/java.base/share/classes/java/lang/invoke/GenerateJLIClassesHelper.java

Print this page

        

*** 29,39 **** import jdk.internal.org.objectweb.asm.Opcodes; import sun.invoke.util.Wrapper; import java.util.ArrayList; import java.util.HashSet; - import java.util.List; import java.util.Map; /** * Helper class to assist the GenerateJLIClassesPlugin to get access to * generate classes ahead of time. --- 29,38 ----
*** 79,98 **** for (Wrapper wrapper : Wrapper.values()) { if (wrapper == Wrapper.VOID) { continue; } for (byte b = DirectMethodHandle.AF_GETFIELD; b < DirectMethodHandle.AF_LIMIT; b++) { ! int ftype = DirectMethodHandle.ftypeKind(wrapper.primitiveType()); LambdaForm form = DirectMethodHandle ! .makePreparedFieldLambdaForm(b, /*isVolatile*/false, ftype); if (form.kind != LambdaForm.Kind.GENERIC) { forms.add(form); names.add(form.kind.defaultLambdaName); } // volatile form = DirectMethodHandle ! .makePreparedFieldLambdaForm(b, /*isVolatile*/true, ftype); if (form.kind != LambdaForm.Kind.GENERIC) { forms.add(form); names.add(form.kind.defaultLambdaName); } } --- 78,97 ---- for (Wrapper wrapper : Wrapper.values()) { if (wrapper == Wrapper.VOID) { continue; } for (byte b = DirectMethodHandle.AF_GETFIELD; b < DirectMethodHandle.AF_LIMIT; b++) { ! int ftype = DirectMethodHandle.ftypeKind(wrapper.primitiveType(), true); LambdaForm form = DirectMethodHandle ! .makePreparedFieldLambdaForm(b, false /*isVolatile*/, ftype); if (form.kind != LambdaForm.Kind.GENERIC) { forms.add(form); names.add(form.kind.defaultLambdaName); } // volatile form = DirectMethodHandle ! .makePreparedFieldLambdaForm(b, true /*isVolatile*/, ftype); if (form.kind != LambdaForm.Kind.GENERIC) { forms.add(form); names.add(form.kind.defaultLambdaName); } }
< prev index next >