Skip to content

Commit

Permalink
Use offsets in the loop logic instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Jan 3, 2025
1 parent fbfa13a commit 2d8211c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hotspot/share/memory/memoryReserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,6 @@ ReservedSpace HeapReserver::Instance::try_reserve_range(char *highest_start,
release(reserved);
}

if (p2u(attach_point) <= stepsize) {
break; // Avoid pointer underflow
}
}

// Failed
Expand Down

0 comments on commit 2d8211c

Please sign in to comment.