diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sat Jun 11 14:20:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * vm.c (thread_memsize): don't ignore size of th->local_storage. + Sat Jun 11 10:32:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb: should quote arch_hdrdir and libpath for the case @@ -1761,7 +1761,7 @@ thread_memsize(const void *ptr) size += th->stack_size * sizeof(VALUE); } if (th->local_storage) { - st_memsize(th->local_storage); + size += st_memsize(th->local_storage); } return size; } |