1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 18:20:26 +09:00

Turn off USE_REGIONS for sunos and illumos (#104301)

This commit is contained in:
Gordon Ross 2024-07-12 13:38:58 -04:00 committed by GitHub
parent a19fc08e6c
commit c9f7f954d4
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,10 @@ inline void FATAL_GC_ERROR()
// This means any empty regions can be freely used for any generation. For
// Server GC we will balance regions between heaps.
// For now disable regions for standalone GC and macOS builds
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__)
// For SunOS or illumos this is temporary, until we can add MAP_PRIVATE
// to the mmap() calls in unix/gcenv.unix.cpp More details here:
// https://github.com/dotnet/runtime/issues/104211
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__) && !defined(__sun)
#define USE_REGIONS
#endif //HOST_64BIT && BUILD_AS_STANDALONE && !__APPLE__