-
Bug
-
Resolution: Fixed
-
P1
-
8u131
-
b179
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8185420 | 10 | Paul Sandoz | P1 | Resolved | Fixed | b18 |
JDK-8189034 | 9.0.6 | Paul Sandoz | P1 | Resolved | Fixed | team |
JDK-8188298 | 9.0.4 | Paul Sandoz | P1 | Resolved | Fixed | b01 |
JDK-8185523 | 9.0.1 | Paul Sandoz | P1 | Closed | Fixed | b04 |
JDK-8187215 | openjdk7u | Paul Sandoz | P1 | Resolved | Fixed | master |
The following code crashes the VM:
import java.lang.invoke.*;
import static java.lang.invoke.MethodType.*;
import static java.lang.invoke.MethodHandles.*;
class Crash {
public static void main(String[] args) throws Throwable {
MethodHandle crash = permuteArguments(foldArguments(
dropArguments(identity(int[].class), 1, int.class, int.class),
arrayElementSetter(int[].class)
), methodType(int[].class, int.class, int[].class, int.class), 1, 2, 0);
int[] arr = new int[1];
arr = (int[])crash.invokeExact(1, arr, 0);
System.out.println(arr);
}
}
Also reproducible with -Xint.
See also email thread:
http://mail.openjdk.java.net/pipermail/jdk9-dev/2017-July/005915.html
import java.lang.invoke.*;
import static java.lang.invoke.MethodType.*;
import static java.lang.invoke.MethodHandles.*;
class Crash {
public static void main(String[] args) throws Throwable {
MethodHandle crash = permuteArguments(foldArguments(
dropArguments(identity(int[].class), 1, int.class, int.class),
arrayElementSetter(int[].class)
), methodType(int[].class, int.class, int[].class, int.class), 1, 2, 0);
int[] arr = new int[1];
arr = (int[])crash.invokeExact(1, arr, 0);
System.out.println(arr);
}
}
Also reproducible with -Xint.
See also email thread:
http://mail.openjdk.java.net/pipermail/jdk9-dev/2017-July/005915.html
- backported by
-
JDK-8185420 Incorrect return processing for the LF editor of MethodHandles.permuteArguments
- Resolved
-
JDK-8187215 Incorrect return processing for the LF editor of MethodHandles.permuteArguments
- Resolved
-
JDK-8188298 Incorrect return processing for the LF editor of MethodHandles.permuteArguments
- Resolved
-
JDK-8189034 Incorrect return processing for the LF editor of MethodHandles.permuteArguments
- Resolved
-
JDK-8185523 Incorrect return processing for the LF editor of MethodHandles.permuteArguments
- Closed