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

Xcheck:jni warnings in Module code - WARNING: JNI local refs: N, exceeds capacity: M

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9-repo-jigsaw
    • 9, 10
    • core-libs
    • None

    Description

      java -Xcheck:jni reports

      WARNING: JNI local refs: 33, exceeds capacity: 32
              at java.lang.reflect.Module.defineModule0(java.base/Native Method)
              at java.lang.reflect.Module.<init>(java.base/Module.java:132)
              at java.lang.reflect.Module.<init>(java.base/Module.java:97)
              at java.lang.reflect.Module$3.defineModule(java.base/Module.java:1514)
              at jdk.internal.module.Modules.defineModule(java.base/Modules.java:71)
              at jdk.internal.module.ModuleBootstrap.boot(java.base/ModuleBootstrap.java:135)
              at java.lang.System.initPhase2(java.base/System.java:1928)
      WARNING: JNI local refs: 66, exceeds capacity: 65
              at java.lang.reflect.Module.defineModule0(java.base/Native Method)
              at java.lang.reflect.Module.<init>(java.base/Module.java:132)
              at java.lang.reflect.Module.<init>(java.base/Module.java:97)
              at java.lang.reflect.Module$3.defineModule(java.base/Module.java:1514)
              at jdk.internal.module.Modules.defineModule(java.base/Modules.java:71)
              at jdk.internal.module.ModuleBootstrap.boot(java.base/ModuleBootstrap.java:135)
              at java.lang.System.initPhase2(java.base/System.java:1928)
      WARNING: JNI local refs: 99, exceeds capacity: 98
              at java.lang.reflect.Module.defineModule0(java.base/Native Method)
              at java.lang.reflect.Module.<init>(java.base/Module.java:132)
              at java.lang.reflect.Module.<init>(java.base/Module.java:97)
              at java.lang.reflect.Module$3.defineModule(java.base/Module.java:1514)
              at jdk.internal.module.Modules.defineModule(java.base/Modules.java:71)
              at jdk.internal.module.ModuleBootstrap.boot(java.base/ModuleBootstrap.java:135)
              at java.lang.System.initPhase2(java.base/System.java:1928)
      WARNING: JNI local refs: 132, exceeds capacity: 131
              at java.lang.reflect.Module.defineModule0(java.base/Native Method)
              at java.lang.reflect.Module.<init>(java.base/Module.java:132)
              at java.lang.reflect.Module.<init>(java.base/Module.java:97)
              at java.lang.reflect.Module$3.defineModule(java.base/Module.java:1514)
              at jdk.internal.module.Modules.defineModule(java.base/Modules.java:71)
              at jdk.internal.module.ModuleBootstrap.boot(java.base/ModuleBootstrap.java:135)
              at java.lang.System.initPhase2(java.base/System.java:1928)

      In all cases we seem to have exceeded capacity by one.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: