[vm] Fix warning in gcc-10.

TEST=build
Change-Id: I33f93ed93699899ed3a1bea727522d268190da58
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215882
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak 2021-10-07 17:13:12 +00:00 committed by commit-bot@chromium.org
parent a1e2432679
commit 17a830d043

View file

@ -57,7 +57,7 @@ void VirtualMemoryCompressedHeap::Init(void* compressed_heap_region,
// weaker property that all addresses in [base_, base_ + size_) have the same
// same upper 32 bits, which is what we really need for compressed pointers.
intptr_t mask = ~(kCompressedHeapAlignment - 1);
ASSERT((base_ & mask) == (base_ + size_ - 1 & mask));
ASSERT((base_ & mask) == ((base_ + size_ - 1) & mask));
mutex_ = new Mutex(NOT_IN_PRODUCT("compressed_heap_mutex"));
}