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

NMT preinit code does not handle allocation errors

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: