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

Unmap failure for executable memory on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • b84
    • x86
    • windows

        The windows os::pd_map_memory() uses VirtualAlloc() instead of CreateFileMapping/MapViewOfFileEx to map memory region that's executable. The windows os::pd_unmap_memory() has incompatible implementation and just calls UnmapViewOfFile(). With a mapped executable region, UnmapViewOfFile() fails because the region was not mapped using CreateFileMapping/MapViewOfFileEx. The failure was observed with CDS when it tries to unmap shared 'mc' region, which is executable.

        The windows os::pd_unmap_memory() should be fixed to call pd_release_memory() for executable memory region.

              jiangli Jiangli Zhou
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: