mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8253926: Use extra_size correctly in anon_mmap_aligned
Reviewed-by: shade, kbarrett, tschatzl, stefank
This commit is contained in:
parent
b8966e1f7b
commit
f686a380f3
1 changed files with 1 additions and 1 deletions
|
@ -3667,7 +3667,7 @@ static char* anon_mmap_aligned(char* req_addr, size_t bytes, size_t alignment) {
|
|||
extra_size += alignment;
|
||||
}
|
||||
|
||||
char* start = anon_mmap(req_addr, bytes);
|
||||
char* start = anon_mmap(req_addr, extra_size);
|
||||
if (start != NULL) {
|
||||
if (req_addr != NULL) {
|
||||
if (start != req_addr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue