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

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

XMLWordPrintable

    • b08
    • aix

        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.

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

                Created:
                Updated:
                Resolved: