From 148900c2dcc50d6c4672af3224c94b430dfb372b Mon Sep 17 00:00:00 2001 From: Fei Yang Date: Mon, 6 Mar 2023 00:33:46 +0000 Subject: [PATCH] 8303562: Remove obsolete comments in os::pd_attempt_reserve_memory_at Reviewed-by: stuefe --- src/hotspot/os/bsd/os_bsd.cpp | 3 --- src/hotspot/os/linux/os_linux.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/hotspot/os/bsd/os_bsd.cpp b/src/hotspot/os/bsd/os_bsd.cpp index 144ca821307..c8af751250b 100644 --- a/src/hotspot/os/bsd/os_bsd.cpp +++ b/src/hotspot/os/bsd/os_bsd.cpp @@ -1769,9 +1769,6 @@ char* os::pd_attempt_reserve_memory_at(char* requested_addr, size_t bytes, bool // in one of the methods further up the call chain. See bug 5044738. assert(bytes % os::vm_page_size() == 0, "reserving unexpected size block"); - // Repeatedly allocate blocks until the block is allocated at the - // right spot. - // Bsd mmap allows caller to pass an address as hint; give it a try first, // if kernel honors the hint then we can return immediately. char * addr = anon_mmap(requested_addr, bytes, exec); diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp index 42680218d8b..86de46df3d1 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -4085,9 +4085,6 @@ char* os::pd_attempt_reserve_memory_at(char* requested_addr, size_t bytes, bool // in one of the methods further up the call chain. See bug 5044738. assert(bytes % os::vm_page_size() == 0, "reserving unexpected size block"); - // Repeatedly allocate blocks until the block is allocated at the - // right spot. - // Linux mmap allows caller to pass an address as hint; give it a try first, // if kernel honors the hint then we can return immediately. char * addr = anon_mmap(requested_addr, bytes);