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

Incorrect print format in error message for VM cannot allocate the requested heap

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: hs25
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b35

      Backports

        Description

        1. print format: %d -> SIZE_FORMAT for type of size_t (variable total_reserved)
        Currently, the print format will incorrectly truncate the value in print, which would confuse users.

        For example,

        $ $JAVA_HOME/bin/java -Xmx130t -version
        Error occurred during initialization of VM
        Could not reserve enough space for object heap 2097152 bytes

        2. *minor: clean up error message call in check_alignment

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tamao Tao Mao (Inactive)
                  Reporter:
                  tamao Tao Mao (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: