aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--internal/gc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/gc.h b/internal/gc.h
index 0abdb22ffd..2b67ca40dc 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -189,10 +189,12 @@ struct rb_objspace; /* in vm_core.h */
// We use SIZE_POOL_COUNT number of shape IDs for transitions out of different size pools
// The next available shape ID will be the SPECIAL_CONST_SHAPE_ID
-#if USE_RVARGC && (SIZEOF_UINT64_T == SIZEOF_VALUE)
-# define SIZE_POOL_COUNT 5
-#else
-# define SIZE_POOL_COUNT 1
+#ifndef SIZE_POOL_COUNT
+# if USE_RVARGC && (SIZEOF_UINT64_T == SIZEOF_VALUE)
+# define SIZE_POOL_COUNT 5
+# else
+# define SIZE_POOL_COUNT 1
+# endif
#endif
#define RCLASS_EXT_EMBEDDED (SIZE_POOL_COUNT > 1)