Skip to content

Commit

Permalink
Increase object kinds limit (to 24 items)
Browse files Browse the repository at this point in the history
* include/private/gc_priv.h [!MAXOBJKINDS && !SMALL_CONFIG]
(MAXOBJKINDS): Define to 24 (instead of 16).
  • Loading branch information
ivmai committed Feb 16, 2024
1 parent 34d5243 commit e809c1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1710,8 +1710,12 @@ GC_API_PRIV GC_FAR struct _GC_arrays GC_arrays;

/* Object kinds: */
#ifndef MAXOBJKINDS
# define MAXOBJKINDS 16
#endif
# ifdef SMALL_CONFIG
# define MAXOBJKINDS 16
# else
# define MAXOBJKINDS 24
# endif
#endif /* !MAXOBJKINDS */
GC_EXTERN struct obj_kind {
void **ok_freelist; /* Array of free list headers for this kind of */
/* object. Point either to GC_arrays or to */
Expand Down

0 comments on commit e809c1c

Please sign in to comment.