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

FILL_ARRAYS and ARRAYS are eagely initialized in MethodHandleImpl

    Details

      Backports

        Description

        5 instances of failures of these 2 tests on Win/x64 and Solaris (sparc and x64)

        Here's a typical log:

        #section:main
        ----------messages:(3/367)----------
        command: main -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222 -XX:ReservedCodeCacheSize=3M Agent
        reason: User specified action: run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222 -XX:ReservedCodeCacheSize=3M Agent
        elapsed time (seconds): 15.04
        ----------System.out:(87/7139)----------
        CodeCache: size=3072Kb used=2546Kb max_used=2549Kb free=525Kb
         bounds [0xffffffff7cc00000, 0xffffffff7cf00000, 0xffffffff7cf00000]
         total_blobs=1123 nmethods=674 adapters=408
         compilation: disabled (not enough contiguous free space left)
        Error occurred during initialization of VM
        java.lang.InternalError: java.lang.NoSuchMethodException: no such method: java.lang.invoke.MethodHandle.linkToSpecial(Object,Object,Object,Object,Object,Object,Object,Object,MemberName)Object/invokeStatic
        at java.lang.invoke.MethodHandleStatics.newInternalError(MethodHandleStatics.java:120)
        at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:214)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:188)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:177)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:84)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:104)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:109)
        at java.lang.invoke.Invokers.basicInvoker(Invokers.java:85)
        at java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1000)
        at java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1358)
        at java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:121)
        at java.lang.invoke.DelegatingMethodHandle.chooseDelegatingForm(DelegatingMethodHandle.java:88)
        at java.lang.invoke.DelegatingMethodHandle.<init>(DelegatingMethodHandle.java:44)
        at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.<init>(MethodHandleImpl.java:1167)
        at java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1209)
        at java.lang.invoke.MethodHandleImpl.makeArrays(MethodHandleImpl.java:1265)
        at java.lang.invoke.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1271)
        at java.lang.invoke.MethodHandle.<clinit>(MethodHandle.java:422)
        Caused by: java.lang.NoSuchMethodException: no such method: java.lang.invoke.MethodHandle.linkToSpecial(Object,Object,Object,Object,Object,Object,Object,Object,MemberName)Object/invokeStatic
        at java.lang.invoke.MemberName.makeAccessException(MemberName.java:873)
        at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:990)
        at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:212)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:188)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:177)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:84)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:104)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:109)
        at java.lang.invoke.Invokers.basicInvoker(Invokers.java:85)
        at java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1000)
        at java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1358)
        at java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:121)
        at java.lang.invoke.DelegatingMethodHandle.chooseDelegatingForm(DelegatingMethodHandle.java:88)
        at java.lang.invoke.DelegatingMethodHandle.<init>(DelegatingMethodHandle.java:44)
        at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.<init>(MethodHandleImpl.java:1167)
        at java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1209)
        at java.lang.invoke.MethodHandleImpl.makeArrays(MethodHandleImpl.java:1265)
        at java.lang.invoke.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1271)
        at java.lang.invoke.MethodHandle.<clinit>(MethodHandle.java:422)
        Caused by: java.lang.NoSuchMethodError: java.lang.invoke.MethodHandle.linkToSpecial(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/invoke/MemberName;)Ljava/lang/Object;
        at java.lang.invoke.MethodHandleNatives.resolve(Native Method)
        at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
        at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:987)
        at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:212)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:188)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:177)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:84)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:104)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:109)
        at java.lang.invoke.Invokers.basicInvoker(Invokers.java:85)
        at java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1000)
        at java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1358)
        at java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:121)
        at java.lang.invoke.DelegatingMethodHandle.chooseDelegatingForm(DelegatingMethodHandle.java:88)
        at java.lang.invoke.DelegatingMethodHandle.<init>(DelegatingMethodHandle.java:44)
        at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.<init>(MethodHandleImpl.java:1167)
        at java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1209)
        at java.lang.invoke.MethodHandleImpl.makeArrays(MethodHandleImpl.java:1265)
        at java.lang.invoke.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1271)
        at java.lang.invoke.MethodHandle.<clinit>(MethodHandle.java:422)
        Caused by: java.lang.VirtualMachineError: out of space in CodeCache for method handle intrinsic
        at java.lang.invoke.MethodHandleNatives.resolve(Native Method)
        at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
        at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:987)
        at java.lang.invoke.DirectMethodHandle.makePreparedLambdaForm(DirectMethodHandle.java:212)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:188)
        at java.lang.invoke.DirectMethodHandle.preparedLambdaForm(DirectMethodHandle.java:177)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:84)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:104)
        at java.lang.invoke.DirectMethodHandle.make(DirectMethodHandle.java:109)
        at java.lang.invoke.Invokers.basicInvoker(Invokers.java:85)
        at java.lang.invoke.LambdaForm$NamedFunction.<init>(LambdaForm.java:1000)
        at java.lang.invoke.LambdaForm$Name.<init>(LambdaForm.java:1358)
        at java.lang.invoke.DelegatingMethodHandle.makeReinvokerForm(DelegatingMethodHandle.java:121)
        at java.lang.invoke.DelegatingMethodHandle.chooseDelegatingForm(DelegatingMethodHandle.java:88)
        at java.lang.invoke.DelegatingMethodHandle.<init>(DelegatingMethodHandle.java:44)
        at java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.<init>(MethodHandleImpl.java:1167)
        at java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1209)
        at java.lang.invoke.MethodHandleImpl.makeArrays(MethodHandleImpl.java:1265)
        at java.lang.invoke.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1271)
        at java.lang.invoke.MethodHandle.<clinit>(MethodHandle.java:422)

        ----------System.err:(2/201)----------
        Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
        Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vlivanov Vladimir Ivanov
                  Reporter:
                  iklam Ioi Lam
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: