Integrated: 8260262: Use common code in function unmap_shared() in perfMemory_posix.cpp

Harold Seigel hseigel at openjdk.java.net
Tue Aug 10 12:20:41 UTC 2021


On Wed, 4 Aug 2021 17:15:46 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Please review this change to use common code in function unmap_shared() in perfMemory_posix.cpp, to fix JDK-8260262.  The change calls munmap() directly to deallocate the memory because functions mmap_create_shared() and mmap_attach_shared() call mmap() directly to allocate the memory.
> 
> The change was tested by running Mach5 tiers 1-2 on Linux, MacOS, and Windows, and Mach5 tiers 3-5 on Linux x64 and MacOS x64.
> 
> Note that testing on AIX is needed.
> 
> Thanks, Harold

This pull request has now been integrated.

Changeset: 2b05fae1
Author:    Harold Seigel <hseigel at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/2b05fae15568d5eb91d6d6d32c29f2fda453a8f5
Stats:     17 lines in 1 file changed: 8 ins; 3 del; 6 mod

8260262: Use common code in function unmap_shared() in perfMemory_posix.cpp

Reviewed-by: stuefe, coleenp

-------------

PR: https://git.openjdk.java.net/jdk/pull/4995


More information about the hotspot-runtime-dev mailing list