Integrated: 8314021: HeapDump: Optimize segmented heap file merging phase
Yi Yang
yyang at openjdk.org
Tue Sep 19 02:06:57 UTC 2023
On Fri, 11 Aug 2023 09:31:56 GMT, Yi Yang <yyang at openjdk.org> wrote:
> This patch reduce ~16%(24s->20s) pahse 2 merge time during dumping 32g heap with 96threads and fixes a memory leak of compressor
>
> You might argue why this is Linux-only optimization, because sendfile requires at least socket fd in other platforms([aix sendfile](https://www.ibm.com/docs/en/aix/7.1?topic=s-send-file-subroutine) [maxos sendfile](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendfile.2.html) [win32 TransmitFile](https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile)), while [only Linux](https://man7.org/linux/man-pages/man2/sendfile.2.html) supports both two file descriptors.
This pull request has now been integrated.
Changeset: 3760a044
Author: Yi Yang <yyang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3760a0448df7024f9b44fa2af11007de4dfcbbe2
Stats: 81 lines in 4 files changed: 73 ins; 5 del; 3 mod
8314021: HeapDump: Optimize segmented heap file merging phase
Reviewed-by: amenkov, kevinw
-------------
PR: https://git.openjdk.org/jdk/pull/15245
More information about the hotspot-runtime-dev
mailing list