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

Invalid format specifier when printing in_cset_state_t

    XMLWordPrintable

    Details

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

      Description

      In the (non-product) verification code g1CollectedHeap.cpp there are a few log messages which print out the in_cset_state_t states using %d as the format specifier. However, the in_cset_state_t type is defined as an intptr_t on SPARC. There's already a helpful format macro CSETSTATE_FORMAT which should be used instead.

        Attachments

          Activity

            People

            Assignee:
            mikael Mikael Vidstedt
            Reporter:
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: