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

NMT preinit code does not handle allocation errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 17, 19, 20
    • hotspot
    • b21

      The NMT preinit allocator (used for os::malloc and friends before the VM is initialized) does not handle malloc errors, nor does it handle overflows due to large sizes (it uses malloc headers too). Both cases need to be handled.

      However, we can keep matters very simple. No need to propagate errors up to the caller; we can just fatal out on errors here since in this phase, there is no alternative for failed allocations.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: