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

Logging for gc+humongous potentially accesses klasses of dead objects

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      During the investigation of JDK-8153843 we noticed that the code for printing gc+humongous logging accesses the klass of the objects that are reclaimed via the size() method during eager reclaim.

      At the moment this is not critical as eager reclaim only over selects humongous objects of typeArray kind, which is never unloaded.

      However this should be fixed in preparation for more extensive reclamation.

      One idea would be to only access obj->size() in the log message if it is safe to do so, otherwise print an estimate (using regions), or just the number of regions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: