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

os::attempt_reserve_memory_at() tries too hard

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b25

      Backports

        Description

        The os::attempt_reserve_memory_at() function on BSD, linux and Solaris all try a bit too hard. They first try to mmap memory at a given address. If that failed, rather than giving up as expected, it tries in a loop to mmap random memory (without address hints), and looks if it can from random address ranges cut out the requested address range. We should just fail instead.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  eosterlund Erik Österlund
                  Reporter:
                  eosterlund Erik Österlund
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: