8278763: Parallel: Remove grows_up/grows_down in PSVirtualSpace

Reviewed-by: tschatzl, mli
This commit is contained in:
Albert Mingkun Yang 2021-12-16 13:39:24 +00:00
parent aae563981c
commit e0700bf1d4
2 changed files with 3 additions and 9 deletions

View File

@ -143,13 +143,9 @@ void PSVirtualSpace::verify() const {
"bad reserved addrs");
assert(committed_low_addr() <= committed_high_addr(), "bad committed addrs");
if (grows_up()) {
assert(reserved_low_addr() == committed_low_addr(), "bad low addrs");
assert(reserved_high_addr() >= committed_high_addr(), "bad high addrs");
} else {
assert(reserved_high_addr() == committed_high_addr(), "bad high addrs");
assert(reserved_low_addr() <= committed_low_addr(), "bad low addrs");
}
// committed addr grows up
assert(reserved_low_addr() == committed_low_addr(), "bad low addrs");
assert(reserved_high_addr() >= committed_high_addr(), "bad high addrs");
}
#endif // #ifndef PRODUCT

View File

@ -103,8 +103,6 @@ class PSVirtualSpace : public CHeapObj<mtGC> {
bool is_aligned(size_t val) const;
bool is_aligned(char* val) const;
void verify() const;
virtual bool grows_up() const { return true; }
bool grows_down() const { return !grows_up(); }
// Helper class to verify a space when entering/leaving a block.
class PSVirtualSpaceVerifier: public StackObj {