Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8141849 | emb-9 | Jiangli Zhou | P3 | Resolved | Fixed | team |
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.
The windows os::pd_unmap_memory() should be fixed to call pd_release_memory() for executable memory region.
- backported by
-
JDK-8141849 Unmap failure for executable memory on windows
-
- Resolved
-