Skip to content

Commit f686a38

Browse files
committed
8253926: Use extra_size correctly in anon_mmap_aligned
Reviewed-by: shade, kbarrett, tschatzl, stefank
1 parent b8966e1 commit f686a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/os/linux/os_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3667,7 +3667,7 @@ static char* anon_mmap_aligned(char* req_addr, size_t bytes, size_t alignment) {
36673667
extra_size += alignment;
36683668
}
36693669

3670-
char* start = anon_mmap(req_addr, bytes);
3670+
char* start = anon_mmap(req_addr, extra_size);
36713671
if (start != NULL) {
36723672
if (req_addr != NULL) {
36733673
if (start != req_addr) {

0 commit comments

Comments
 (0)