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

Use correct format specifier to print size_t values and pointers in the GC code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b12

      Description

      There are a number of places where we use %d to print size_t values and a few places where we use 0x%x to print pointers. This gives incorrect values on platforms where the size of size_t and pointers differ from the size of ints. Use SIZE_FORMAT and PTR_FORMAT instead.

        Attachments

          Activity

            People

            • Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: