< prev index next >

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

Print this page
rev 47761 : 8186209: Tool support for ConstantDynamic
8186046: Minimal ConstantDynamic support
Reviewed-by: acorn
Contributed-by: lois.foltan@oracle.com, john.r.rose@oracle.com, paul.sandoz@oracle.com
* * *
Minor Hotspot code cleanup changes resulting from condy review
Summary: Addressed missing DynamicInError condition, removed unused TraceDynamicConstants
Reviewed-by: acorn, psandoz
rev 47762 : 8187742: Minimal set of bootstrap methods for constant dynamic
Contributed-by: brian.goetz@oracle.com, john.r.rose@oracle.com, paul.sandoz@oracle.com
Reviewed-by: forax

*** 308,318 **** static Object linkDynamicConstantImpl(Class<?> caller, MethodHandle bootstrapMethod, String name, Class<?> type, Object staticArguments) { ! return DynamicConstant.makeConstant(bootstrapMethod, name, type, staticArguments, caller); } private static String staticArglistForTrace(Object staticArguments) { if (staticArguments instanceof Object[]) return "BSA="+java.util.Arrays.asList((Object[]) staticArguments); --- 308,318 ---- static Object linkDynamicConstantImpl(Class<?> caller, MethodHandle bootstrapMethod, String name, Class<?> type, Object staticArguments) { ! return ConstantBootstraps.makeConstant(bootstrapMethod, name, type, staticArguments, caller); } private static String staticArglistForTrace(Object staticArguments) { if (staticArguments instanceof Object[]) return "BSA="+java.util.Arrays.asList((Object[]) staticArguments);
< prev index next >