java.lang.BootstrapMethodError: java.lang.LinkageError

JDK Bug System | Rickard Backman | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ACTION: build -- Passed. All files up to date REASON: Named class compiled on demand TIME: 0.0 seconds messages: command: build compiler.codecache.jmx.UsageThresholdExceededTest reason: Named class compiled on demand elapsed time (seconds): 0.0 ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.BootstrapMethodError: java.lang.LinkageError REASON: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest TIME: 2.265 seconds messages: command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCodeCacheFlushing -XX:-MethodFlushing -XX:CompileCommand=compileonly,null::* -XX:+SegmentedCodeCache compiler.codecache.jmx.UsageThresholdExceededTest Mode: othervm [/othervm specified] elapsed time (seconds): 2.265 configuration: Boot Layer add exports: java.base/jdk.internal.misc ALL-UNNAMED boot class path (append): . STDOUT: CompileCommand: compileonly null.* STDERR: java.lang.BootstrapMethodError: java.lang.LinkageError at compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold(CodeCacheUtils.java:60) at compiler.codecache.jmx.UsageThresholdExceededTest.runTest(UsageThresholdExceededTest.java:74) at compiler.codecache.jmx.UsageThresholdExceededTest.main(UsageThresholdExceededTest.java:66) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) Caused by: java.lang.LinkageError at java.lang.invoke.MethodHandleNatives.linkMethodImpl(java.base@9-internal/MethodHandleNatives.java:386) at java.lang.invoke.MethodHandleNatives.linkMethod(java.base@9-internal/MethodHandleNatives.java:366) at java.util.concurrent.atomic.AtomicLong.compareAndSet(java.base@9-internal/AtomicLong.java:152) at java.util.Random.seedUniquifier(java.base@9-internal/Random.java:114) at java.util.Random.<init>(java.base@9-internal/Random.java:105) at java.util.concurrent.ThreadLocalRandom.<init>(java.base@9-internal/ThreadLocalRandom.java:150) at java.util.concurrent.ThreadLocalRandom.<clinit>(java.base@9-internal/ThreadLocalRandom.java:1106) at java.util.concurrent.ConcurrentHashMap.fullAddCount(java.base@9-internal/ConcurrentHashMap.java:2583) at java.util.concurrent.ConcurrentHashMap.addCount(java.base@9-internal/ConcurrentHashMap.java:2332) at java.util.concurrent.ConcurrentHashMap.replaceNode(java.base@9-internal/ConcurrentHashMap.java:1179) at java.util.concurrent.ConcurrentHashMap.remove(java.base@9-internal/ConcurrentHashMap.java:1108) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(java.base@9-internal/MethodType.java:1291) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(java.base@9-internal/MethodType.java:1250) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:305) at java.lang.invoke.MethodHandleNatives.findMethodHandleType(java.base@9-internal/MethodHandleNatives.java:292) ... 9 more Caused by: java.lang.NullPointerException at java.util.concurrent.ThreadLocalRandom.localInit(java.base@9-internal/ThreadLocalRandom.java:164) at java.util.concurrent.ConcurrentHashMap.fullAddCount(java.base@9-internal/ConcurrentHashMap.java:2584) at java.util.concurrent.ConcurrentHashMap.addCount(java.base@9-internal/ConcurrentHashMap.java:2332) at java.util.concurrent.ConcurrentHashMap.putVal(java.base@9-internal/ConcurrentHashMap.java:1081) at java.util.concurrent.ConcurrentHashMap.putIfAbsent(java.base@9-internal/ConcurrentHashMap.java:1551) at java.lang.invoke.MethodType$ConcurrentWeakInternSet.add(java.base@9-internal/MethodType.java:1282) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:314) at java.lang.invoke.MethodTypeForm.canonicalize(java.base@9-internal/MethodTypeForm.java:354) at java.lang.invoke.MethodTypeForm.findForm(java.base@9-internal/MethodTypeForm.java:316) at java.lang.invoke.MethodType.makeImpl(java.base@9-internal/MethodType.java:313) at java.lang.invoke.MethodType.insertParameterTypes(java.base@9-internal/MethodType.java:403) at java.lang.invoke.MethodHandleNatives.varHandleOperationLinkerMethod(java.base@9-internal/MethodHandleNatives.java:446) at java.lang.invoke.MethodHandleNatives.linkMethodImpl(java.base@9-internal/MethodHandleNatives.java:378) ... 23 more JavaTest Message: Test threw exception: java.lang.BootstrapMethodError: java.lang.LinkageError JavaTest Message: shutting down test

    JDK Bug System | 8 months ago | Rickard Backman
    java.lang.BootstrapMethodError: java.lang.LinkageError

    Root Cause Analysis

    1. java.lang.BootstrapMethodError

      java.lang.LinkageError

      at compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold()
    2. compiler.codecache.jmx
      UsageThresholdExceededTest.main
      1. compiler.codecache.jmx.CodeCacheUtils.hitUsageThreshold(CodeCacheUtils.java:60)
      2. compiler.codecache.jmx.UsageThresholdExceededTest.runTest(UsageThresholdExceededTest.java:74)
      3. compiler.codecache.jmx.UsageThresholdExceededTest.main(UsageThresholdExceededTest.java:66)
      3 frames