From 8b7a8978e2da6c0a427e08af8593e82160033756 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 20 Nov 2017 06:34:27 +0900 Subject: Reduce the size of `struct RBreak` to reduce memory usage. The old size of `struct RBreak` was 56 bytes (`MRB_NO_BOXING`) and it's bigger than other object structures. That increase the size of `RVALUE` thus increase the total amount of memory consumption. --- src/vm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/vm.c') diff --git a/src/vm.c b/src/vm.c index 170cb832d..2c2d74db1 100644 --- a/src/vm.c +++ b/src/vm.c @@ -810,7 +810,6 @@ break_new(mrb_state *mrb, struct RProc *p, mrb_value val) struct RBreak *brk; brk = (struct RBreak*)mrb_obj_alloc(mrb, MRB_TT_BREAK, NULL); - brk->iv = NULL; brk->proc = p; brk->val = val; -- cgit v1.2.3