Allocator: fix the caching of host va size

Commit abf9724 ("Allocator: Fix and optimize VA range detection")
removed assignment to the `HostVASize` global thus making each call to
`DetermineVASize` redo all the work with potential to produce incorrect
results. Set the global again to fix this.
This commit is contained in:
Egor Lazarchuk committed 2026-07-05 12:46:29 +01:00
1 parent e7727c39f3
commit a65e1bf7e5
1 file changed
+1
+1
View File
@@ -125,6 +125,7 @@ FEX_DEFAULT_VISIBILITY size_t DetermineVASize() {
::munmap(Ptr, FEXCore::Utils::FEX_PAGE_SIZE);
}
if (Ptr != (void*)~0ULL || errno == EEXIST) {
HostVASize = Bits;
return Bits;
}
}