mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 06:00:26 +00:00
8367317: ZGC: ZVirtualMemoryReserver::force_reserve_discontiguous arithmetic underflow
Reviewed-by: jsikstro, eosterlund
This commit is contained in:
parent
66e5a68a33
commit
a8b35bf5a6
@ -100,9 +100,10 @@ size_t ZVirtualMemoryReserver::force_reserve_discontiguous(size_t size) {
|
||||
|
||||
if (reserve_contiguous(to_zoffset(reserve_start), reserve_size)) {
|
||||
reserved += reserve_size;
|
||||
end -= reserve_size;
|
||||
}
|
||||
|
||||
end -= reserve_size * 2;
|
||||
end -= MIN2(end, reserve_size);
|
||||
}
|
||||
|
||||
// If (reserved < size) attempt to reserve the rest via normal divide and conquer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user