Skip to content

Commit 37b98f0

Browse files
committed
[ruby/mmtk] Add a 32 byte heap for allocating smaller objects
ruby/mmtk@c4cca6c1c3
1 parent d8b3399 commit 37b98f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gc/mmtk/mmtk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,11 @@ void rb_gc_impl_set_params(void *objspace_ptr) { }
472472

473473
static VALUE gc_verify_internal_consistency(VALUE self) { return Qnil; }
474474

475-
#define MMTK_HEAP_COUNT 5
475+
#define MMTK_HEAP_COUNT 6
476476
#define MMTK_MAX_OBJ_SIZE 640
477477

478478
static size_t heap_sizes[MMTK_HEAP_COUNT + 1] = {
479-
40, 80, 160, 320, MMTK_MAX_OBJ_SIZE, 0
479+
32, 40, 80, 160, 320, MMTK_MAX_OBJ_SIZE, 0
480480
};
481481

482482
void

0 commit comments

Comments
 (0)