8198719: MethodHandleHelper.linkToStatic should drop MH arg
Reviewed-by: vlivanov, dlong
--- a/test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java Tue Jun 19 18:18:25 2018 +0300
+++ b/test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java Tue Jun 19 18:18:46 2018 +0300
@@ -39,7 +39,7 @@
static void mainLink(int i) throws Throwable {
Object name = MethodHandleHelper.internalMemberName(INT_MH);
- MethodHandleHelper.linkToStatic(INT_MH, (float) i, name);
+ MethodHandleHelper.linkToStatic((float) i, name);
}
static void mainInvoke(int i) throws Throwable {
--- a/test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java Tue Jun 19 18:18:25 2018 +0300
+++ b/test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java Tue Jun 19 18:18:46 2018 +0300
@@ -49,8 +49,8 @@
}
@ForceInline
- public static void linkToStatic(MethodHandle mh, float arg, Object name) throws Throwable {
- MethodHandle.linkToStatic(mh, arg, name);
+ public static void linkToStatic(float arg, Object name) throws Throwable {
+ MethodHandle.linkToStatic(arg, name);
}
@ForceInline