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

Clean up misleading usage of malloc() in init_system_properties_values()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b08
    • OS:
      aix

      Backports

        Description

        In init_system_properties_values() NEW_C_HEAP_ARRAY is defined to malloc.
        After calls to this macro, the result was checked for NULL.

        Actually, NEW_C_HEAP_ARRAY exit the vm if it can not allocate memory.

        Remove the misleading malloc macro and remove unnecessary checks for null
        in os_linux.cpp and os_aix.cpp.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  goetz Goetz Lindenmaier
                  Reporter:
                  goetz Goetz Lindenmaier
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: