Skip to content

Commit

Permalink
8253926: Use extra_size correctly in anon_mmap_aligned
Browse files Browse the repository at this point in the history
Reviewed-by: shade, kbarrett, tschatzl, stefank
  • Loading branch information
kstefanj committed Oct 2, 2020
1 parent b8966e1 commit f686a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/os/linux/os_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f686a38

Please sign in to comment.