-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b106
-
Verified
AllocationCodeBlobTest.java fails because we don't expect an allocation in the code cache if "-XX:CompileCommand=compileonly,null::*" is set:
java.lang.RuntimeException: free shouldn't increase memory usage: 4768896 <= 4764672 (assert failed: 4768896 <= 4764672)
at jdk.test.lib.Asserts.error(Asserts.java:447)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:374)
at jdk.test.lib.Asserts.assertLessThanOrEqual(Asserts.java:125)
at jdk.test.lib.Asserts.assertLTE(Asserts.java:104)
at AllocationCodeBlobTest.test(AllocationCodeBlobTest.java:106)
The problem is, that with Indify String Concatenation (JDK-8148483), additional invokedynamic instructions are resolved, triggering method handle intrinsic creation:
538 33 n 0 java.lang.invoke.MethodHandle::linkToStatic(JJL)L (native) (static)
539 34 n 0 java.lang.invoke.MethodHandle::invokeBasic(JJ)L (native)
539 35 n 0 java.lang.invoke.MethodHandle::linkToSpecial(LJJL)L (native) (static)
java.lang.RuntimeException: free shouldn't increase memory usage: 4768896 <= 4764672 (assert failed: 4768896 <= 4764672)
at jdk.test.lib.Asserts.error(Asserts.java:447)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:374)
at jdk.test.lib.Asserts.assertLessThanOrEqual(Asserts.java:125)
at jdk.test.lib.Asserts.assertLTE(Asserts.java:104)
at AllocationCodeBlobTest.test(AllocationCodeBlobTest.java:106)
The problem is, that with Indify String Concatenation (
538 33 n 0 java.lang.invoke.MethodHandle::linkToStatic(JJL)L (native) (static)
539 34 n 0 java.lang.invoke.MethodHandle::invokeBasic(JJ)L (native)
539 35 n 0 java.lang.invoke.MethodHandle::linkToSpecial(LJJL)L (native) (static)
- relates to
-
JDK-8311812 compiler/whitebox/AllocationCodeBlobTest.java failed with unexpected code cache usage
-
- Open
-