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

Potential bug in os::split_reserved_memory on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 17
    • 16
    • hotspot
    • None

    Description

      The code looks like this on windows:
        release_memory(base, size);
        attempt_reserve_memory_at(split, base);
        attempt_reserve_memory_at(size - split, split_address);

      After the release and before the re-reservations, another thread could reserve that memory. Investigate the effects of this.

      We've had similar bugs in the past, where memory are temporarily unmapped and non-JVM threads reserves memory in the requested area.

      Attachments

        Issue Links

          Activity

            People

              minqi Yumin Qi
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: