Skip to content

Commit c9f7f95

Browse files
authored
Turn off USE_REGIONS for sunos and illumos (dotnet#104301)
1 parent a19fc08 commit c9f7f95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coreclr/gc/gcpriv.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ inline void FATAL_GC_ERROR()
141141
// This means any empty regions can be freely used for any generation. For
142142
// Server GC we will balance regions between heaps.
143143
// For now disable regions for standalone GC and macOS builds
144-
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__)
144+
// For SunOS or illumos this is temporary, until we can add MAP_PRIVATE
145+
// to the mmap() calls in unix/gcenv.unix.cpp More details here:
146+
// https://github.com/dotnet/runtime/issues/104211
147+
#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__) && !defined(__sun)
145148
#define USE_REGIONS
146149
#endif //HOST_64BIT && BUILD_AS_STANDALONE && !__APPLE__
147150

0 commit comments

Comments
 (0)