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

Code cache/heap size options should be size_t

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 26
    • hotspot
    • b03

      There are a number of VM options controlling various size values related to the code cache and the code heap. They are declared in globals.hpp as being of type uintx. But the cpu definitions are not always consistent with that. Some platforms define them as uintx, some as size_t, and some as intx(!).

      There are also some format strings using the wrong conversion spec when printing some of them. (It is because of these, found while investigating JDK-8198918, that I discovered the definition inconsistencies. Perhaps this issue should be categorized as a bug because of these incorrect format conversions.)

      It would be better if these were all consistenly of type size_t, and use the "%zu" conversion spec when printing them.

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

              Created:
              Updated:
              Resolved: