-
Bug
-
Resolution: Fixed
-
P3
-
7u201, 8u192, 9, 10, 11, 12, 13
-
b12
-
x86_64
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8234567 | 11.0.7-oracle | Tobias Hartmann | P3 | Resolved | Fixed | b01 |
JDK-8226669 | 11.0.5 | Tobias Hartmann | P3 | Resolved | Fixed | b01 |
JDK-8230064 | openjdk8u232 | Tobias Hartmann | P3 | Resolved | Fixed | b05 |
Several tests fail when running with -XX:-InlineNatives or -XX:-InlineClassNatives.
For example, jdk/java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java:
java.lang.ClassCastException: Cannot cast java.lang.Object to java.lang.invoke.BoundMethodHandle$SpeciesData
at java.base/java.lang.Class.cast(Class.java:3613)
at java.base/java.lang.invoke.ClassSpecializer.findSpecies(ClassSpecializer.java:202)
at java.base/java.lang.invoke.BoundMethodHandle$SpeciesData.extendWith(BoundMethodHandle.java:352)
at java.base/java.lang.invoke.LambdaFormEditor.newSpeciesData(LambdaFormEditor.java:392)
at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentForm(LambdaFormEditor.java:455)
at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:406)
at java.base/java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:100)
at java.base/java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:3534)
at java.base/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:3515)
...
With sun/invoke/util/ValueConversionsTest.java:
JavaTest Message: JUnit Failure: testConvert(test.sun.invoke.util.ValueConversionsTest): null
java.lang.AssertionError
at java.base/sun.invoke.util.Wrapper.convert(Wrapper.java:537)
at java.base/sun.invoke.util.Wrapper.cast(Wrapper.java:495)
at test.sun.invoke.util.ValueConversionsTest.testConvert(ValueConversionsTest.java:189)
at test.sun.invoke.util.ValueConversionsTest.testConvert(ValueConversionsTest.java:173)
...
For example, jdk/java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java:
java.lang.ClassCastException: Cannot cast java.lang.Object to java.lang.invoke.BoundMethodHandle$SpeciesData
at java.base/java.lang.Class.cast(Class.java:3613)
at java.base/java.lang.invoke.ClassSpecializer.findSpecies(ClassSpecializer.java:202)
at java.base/java.lang.invoke.BoundMethodHandle$SpeciesData.extendWith(BoundMethodHandle.java:352)
at java.base/java.lang.invoke.LambdaFormEditor.newSpeciesData(LambdaFormEditor.java:392)
at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentForm(LambdaFormEditor.java:455)
at java.base/java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:406)
at java.base/java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:100)
at java.base/java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:3534)
at java.base/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:3515)
...
With sun/invoke/util/ValueConversionsTest.java:
JavaTest Message: JUnit Failure: testConvert(test.sun.invoke.util.ValueConversionsTest): null
java.lang.AssertionError
at java.base/sun.invoke.util.Wrapper.convert(Wrapper.java:537)
at java.base/sun.invoke.util.Wrapper.cast(Wrapper.java:495)
at test.sun.invoke.util.ValueConversionsTest.testConvert(ValueConversionsTest.java:189)
at test.sun.invoke.util.ValueConversionsTest.testConvert(ValueConversionsTest.java:173)
...
- backported by
-
JDK-8226669 Failures when vmIntrinsics::_getClass is not inlined
- Resolved
-
JDK-8230064 Failures when vmIntrinsics::_getClass is not inlined
- Resolved
-
JDK-8234567 Failures when vmIntrinsics::_getClass is not inlined
- Resolved
- duplicates
-
JDK-8219725 C2 generates wrong code with -XX:-InlineNatives for java/lang/invoke/ClassSpecializer.findSpecies
- Closed
- relates to
-
JDK-7105605 Use EA info to optimize pointers compare
- Closed