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

Remove TraceJNIHandleAllocation rather than converting to UL

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b110

      Description


      It looks like this tracing was used to debug JNI Handle block allocation at one time and hasn't been used for a long time. The output is meaningless unless you are actually debugging in the code, in which case, you could add print statements if you need to debug it.

      It's unlikely something that could be turned on for a customer to yield meaningful problem analysis.

      philli% java -XX:+TraceJNIHandleAllocation -version
      JNIHandleBlock 0x00007eff9801adc0 allocated (1 total blocks)
      JNIHandleBlock 0x00007eff74000930 allocated (2 total blocks)
      JNIHandleBlock 0x00007eff68000930 allocated (3 total blocks)
      JNIHandleBlock 0x00007eff6c000930 allocated (4 total blocks)
      JNIHandleBlock 0x00007eff60000930 allocated (5 total blocks)
      JNIHandleBlock 0x00007eff64000930 allocated (6 total blocks)
      JNIHandleBlock 0x00007eff54000930 allocated (7 total blocks)
      JNIHandleBlock 0x00007eff9816dc80 allocated (8 total blocks)
      JNIHandleBlock 0x00007eff9816de00 allocated (9 total blocks)
      JNIHandleBlock 0x00007eff9816f260 allocated (10 total blocks)
      JNIHandleBlock 0x00007eff50000930 allocated (11 total blocks)
      JNIHandleBlock 0x00007eff981d9900 allocated (12 total blocks)
      JNIHandleBlock 0x00007eff981ddc40 allocated (13 total blocks)
      JNIHandleBlock 0x00007eff981ea3f0 allocated (14 total blocks)
      JNIHandleBlock 0x00007eff981eac70 allocated (15 total blocks)
      Rebuild free list JNIHandleBlock 0x00007eff9816f260 blocks=1 used=32 free=0 add=1
      JNIHandleBlock 0x00007eff981ebac0 allocated (16 total blocks)
      JNIHandleBlock 0x00007eff44000930 allocated (17 total blocks)
      JNIHandleBlock 0x00007eff44000ab0 allocated (18 total blocks)
      JNIHandleBlock 0x00007eff981f4340 allocated (19 total blocks)
      JNIHandleBlock 0x00007eff48000930 allocated (20 total blocks)
      JNIHandleBlock 0x00007eff48000ab0 allocated (21 total blocks)
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=1 used=4 free=28 add=0
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=1 used=5 free=27 add=0
      JNIHandleBlock 0x00007eff982059e0 allocated (22 total blocks)
      JNIHandleBlock 0x00007eff98205b60 allocated (23 total blocks)
      Rebuild free list JNIHandleBlock 0x00007eff9816f260 blocks=2 used=64 free=0 add=2
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=1 used=4 free=28 add=0
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=1 used=16 free=16 add=0
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=1 used=24 free=8 add=1
      Rebuild free list JNIHandleBlock 0x00007eff981d9900 blocks=2 used=37 free=27 add=1
      JNIHandleBlock 0x00007eff98214150 allocated (24 total blocks)
      JNIHandleBlock 0x00007eff98216230 allocated (25 total blocks)
      Rebuild free list JNIHandleBlock 0x00007eff9816f260 blocks=4 used=128 free=0 add=4
      JNIHandleBlock 0x00007eff3c000930 allocated (26 total blocks)
      JNIHandleBlock 0x00007eff34000930 allocated (27 total blocks)
      JNIHandleBlock 0x00007eff38000930 allocated (28 total blocks)
      JNIHandleBlock 0x00007eff2c000930 allocated (29 total blocks)
      JNIHandleBlock 0x00007eff30000930 allocated (30 total blocks)
      JNIHandleBlock 0x00007eff24000930 allocated (31 total blocks)
      JNIHandleBlock 0x00007eff28000930 allocated (32 total blocks)
      JNIHandleBlock 0x00007eff30016130 allocated (33 total blocks)
      JNIHandleBlock 0x00007eff1c000930 allocated (34 total blocks)
      java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-01-06-175010.cphillim.jdk9.temp-new-sym)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-01-06-175010.cphillim.jdk9.temp-new-sym-coleen, mixed mode)

        Attachments

          Activity

            People

            Assignee:
            gziemski Gerard Ziemski
            Reporter:
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: