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

Improve objectID generator for inlined objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • CPU:
      generic
    • OS:
      generic

      Description

      Inlined objects (fields or flattened array elements) are dumped as HPROF_GC_INSTANCE_DUMP records and objectID for them are generated by special generator (as we cannot use addresses on the objects). The generator produces sequential numbers (1, 2, 3...)
      But number of inlined objects can be huge and generator can produce the numbers which conflict with addresses of heap objects (which are used as IDs for this objects).
      Also with JDK-8276171 objectID for instance objects can be small numbers.
      Real java applications usually use only some part of the available heap address space.
      Need to make the generator more flexible:
      - detect safe address ranges (before/after the heap);
      - estimate number of required objectID (i.e. number of inlined objects) to ensure they can fit 32 or 64bit objectID

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amenkov Alex Menkov
              Reporter:
              amenkov Alex Menkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: