Allow user defined SIZE_POOL_COUNT
We shouldn't overwrite the value of SIZE_POOL_COUNT if the user has specified one.
This commit is contained in:
parent
36254c5ddf
commit
a2ff9423a1
@ -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
|
// 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
|
// The next available shape ID will be the SPECIAL_CONST_SHAPE_ID
|
||||||
#if USE_RVARGC && (SIZEOF_UINT64_T == SIZEOF_VALUE)
|
#ifndef SIZE_POOL_COUNT
|
||||||
# define SIZE_POOL_COUNT 5
|
# if USE_RVARGC && (SIZEOF_UINT64_T == SIZEOF_VALUE)
|
||||||
#else
|
# define SIZE_POOL_COUNT 5
|
||||||
# define SIZE_POOL_COUNT 1
|
# else
|
||||||
|
# define SIZE_POOL_COUNT 1
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RCLASS_EXT_EMBEDDED (SIZE_POOL_COUNT > 1)
|
#define RCLASS_EXT_EMBEDDED (SIZE_POOL_COUNT > 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user