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

MemoryReserver log_on_large_pages_failure has incorrect format usage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • master

      In log_on_large_pages_failure (a file-scoped function in memoryReserver.cpp) there is a use of jio_snprintf that prints a pointer. It uses PTR_FORMAT, which is correct. But it uses the pointer directly as the argument, rather than using the `p2i` helper function. It happens to accidentally work, but is warned about if gcc's printf checking is enabled for that call.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: