Skip to content
Permalink
Browse files
8263455: NMT: assert on registering a region which completely engulfs…
… an existing region

Reviewed-by: zgu, coleenp
  • Loading branch information
tstuefe committed Mar 18, 2021
1 parent 2b93ae0 commit 444a80b920f7cb61b4607d9d245d410bf872b27f
Showing 1 changed file with 1 addition and 2 deletions.
@@ -205,8 +205,7 @@ class VirtualMemoryRegion {
inline bool overlap_region(address addr, size_t sz) const {
assert(sz > 0, "Invalid size");
assert(size() > 0, "Invalid size");
return contain_address(addr) ||
contain_address(addr + sz - 1);
return MAX2(addr, base()) < MIN2(addr + sz, end());
}

inline bool adjacent_to(address addr, size_t sz) const {

0 comments on commit 444a80b

Please sign in to comment.