Index: runtime/vm/virtual_memory_fuchsia.cc |
diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc |
index 3cafd55a930a078fc537ef8017251465f086966a..db6504f242015338191789a584f482dc88cc6e1b 100644 |
--- a/runtime/vm/virtual_memory_fuchsia.cc |
+++ b/runtime/vm/virtual_memory_fuchsia.cc |
@@ -153,6 +153,7 @@ void VirtualMemory::InitOnce() { |
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) { |
+ ASSERT(Utils::IsAligned(size, page_size_)); |
mx_handle_t vmar = MX_HANDLE_INVALID; |
uword addr = 0; |
const uint32_t flags = MX_VM_FLAG_COMPACT | MX_VM_FLAG_CAN_MAP_SPECIFIC | |