Fix broken windows build

I changed the VirtualMemoryCompressedHeap::Cleanup() signature ages ago,
but forgot to update the windows caller.

Bug: https://github.com/dart-lang/sdk/issues/46468
Change-Id: I2624bce6bcf03867321d1e35f96843c0473d5e4f
TEST=CI
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206667
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Liam Appelbe 2021-07-14 16:48:23 +00:00 committed by commit-bot@chromium.org
parent 0a064b9ed7
commit 4d92121a1a

View file

@ -74,8 +74,9 @@ void VirtualMemory::Init() {
void VirtualMemory::Cleanup() {
#if defined(DART_COMPRESSED_POINTERS)
VirtualFree(VirtualMemoryCompressedHeap::Cleanup(), kCompressedHeapSize,
MEM_RELEASE);
void* heap_base = VirtualMemoryCompressedHeap::GetRegion();
VirtualFree(heap_base, kCompressedHeapSize, MEM_RELEASE);
VirtualMemoryCompressedHeap::Cleanup();
#endif // defined(DART_COMPRESSED_POINTERS)
}