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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b12

        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.

              stefank Stefan Karlsson
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: