mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
gc.h: move mrb_heap_page definition to gc.c
This commit is contained in:
@@ -148,6 +148,15 @@ typedef struct {
|
||||
#define MRB_HEAP_PAGE_SIZE 1024
|
||||
#endif
|
||||
|
||||
typedef struct mrb_heap_page {
|
||||
struct RBasic *freelist;
|
||||
struct mrb_heap_page *prev;
|
||||
struct mrb_heap_page *next;
|
||||
mrb_bool old:1;
|
||||
/* Flexible array members area a C99 feature, not C++ compatible */
|
||||
/* void* objects[]; */
|
||||
} mrb_heap_page;
|
||||
|
||||
#define GC_STEP_SIZE 1024
|
||||
|
||||
/* white: 001 or 010, black: 100, gray: 000, red:111 */
|
||||
|
||||
Reference in New Issue
Block a user