8303562: Remove obsolete comments in os::pd_attempt_reserve_memory_at

Reviewed-by: stuefe
This commit is contained in:
Fei Yang 2023-03-06 00:33:46 +00:00
parent 1bb39a95eb
commit 148900c2dc
2 changed files with 0 additions and 6 deletions

View File

@ -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);

View File

@ -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);