mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[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:
parent
a1e2432679
commit
17a830d043
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue