Error reporting on failed memory allocation (#1091)

* Error reporting on failed memory allocation

* Formatting
This commit is contained in:
Paris Oplopoios 2024-09-27 01:56:59 +03:00 committed by GitHub
parent eef0e6fc63
commit c73fad6772
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,8 @@ struct AddressSpace::Impl {
}
reduction += ReductionOnFail;
}
ASSERT_MSG(virtual_base, "Unable to reserve virtual address space!");
ASSERT_MSG(virtual_base, "Unable to reserve virtual address space: {}",
Common::GetLastErrorMsg());
// Take the reduction off of the system managed area, and leave the others unchanged.
system_managed_base = virtual_base;