8198719: MethodHandleHelper.linkToStatic should drop MH arg
Reviewed-by: vlivanov, dlong
This commit is contained in:
parent
0bb3443a98
commit
d571ea407c
@ -39,7 +39,7 @@ public class InvokerSignatureMismatch {
|
|||||||
|
|
||||||
static void mainLink(int i) throws Throwable {
|
static void mainLink(int i) throws Throwable {
|
||||||
Object name = MethodHandleHelper.internalMemberName(INT_MH);
|
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 {
|
static void mainInvoke(int i) throws Throwable {
|
||||||
|
@ -49,8 +49,8 @@ public class MethodHandleHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ForceInline
|
@ForceInline
|
||||||
public static void linkToStatic(MethodHandle mh, float arg, Object name) throws Throwable {
|
public static void linkToStatic(float arg, Object name) throws Throwable {
|
||||||
MethodHandle.linkToStatic(mh, arg, name);
|
MethodHandle.linkToStatic(arg, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ForceInline
|
@ForceInline
|
||||||
|
Loading…
Reference in New Issue
Block a user