Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8148751

[TESTBUG] compiler/whitebox/AllocationCodeBlobTest.java fails due to unexpected code cache allocation

XMLWordPrintable

    • 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)

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: