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

Issues with os:reserve_memory_aligned on Posix

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Not an Issue
    • P4
    • None
    • 16
    • hotspot

    Description

      JEP 316 was added to reserve the heap on a file device. It added an file descriptor argument to calls like os::reserve_memory and friends.

      There are a number of issues with this:
      - in os::reserve_memory_aligned, Posix: mmap is called to reserve, then the generic os::release_memory is called to release parts of it. Or all in case of an error.
      - Same problem also in reserve_mmapped_memory() in the same file
      - Comment states that mappings established with a file descriptor cannot be partially unmapped. Not sure if that is true. If it is untrue, that coding can be simplified a lot.

      Attachments

        Issue Links

          Activity

            People

              azafari Afshin Zafari
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: