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

[windows] add loop fuse to map_or_reserve_memory_aligned

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b25

      Backports

        Description

        map_or_reserve_memory_aligned attempts to allocate aligned memory by:
        1) reserving larger area
        2) releasing it
        3) attempting to re-reserve into the vacated address space a smaller area at the aligned start address

        Since this may fail (between (2) and (3) someone may have grabbed that address concurrently), we do this in a loop. However, when failing to release it we will loop-reserve endlessly.

        This is one of the reasons for JDK-8255954 whose root cause will be fixed with JDK-8255978. But we should guard against endless loops independently from that.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: