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

Duplicate values in enum MemoryType (Native Memory Tracking)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7u80
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • CPU:
      generic
    • OS:
      generic

      Description

      There are two enum entries with the same value in enum MemoryType in allocation.hpp.

      mtTracing and mtDontTrack are both defined as 0x0F00. This probably makes memory allocated by JFR invisible/untrackable.

      enum MemoryType {
      ...
        mtClassShared = 0x0D00, // class data sharing
        mtTest = 0x0E00, // Test type for verifying NMT
        mtTracing = 0x0F00, // memory used for Tracing
        mt_number_of_types = 0x000F, // number of memory types (mtDontTrack
                                       // is not included as validate type)
        mtDontTrack = 0x0F00, // memory we do not or cannot track
        mt_masks = 0x7F00,
      ...
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              farvidsson Fredrik Arvidsson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: