From cda7250de0e7cd3f8842ee9b7c0ce8dc7cf920d1 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 5 Dec 2013 04:54:20 +0000 Subject: * gc.c (vm_malloc_size): added. return malloc_usable_size() if possible. * gc.c (MALLOC_ALLOCATED_SIZE): add new setting macro to enable GC.allocated_size. If platform supports `malloc_usable_size()' (or similar one), GC.allocated_size can be implemented with this function. Default is 0. * gc.c (vm_xmalloc, vm_xrealloc, vm_xfree): use vm_malloc_size() to detect collect allocated size. * gc.c (vm_malloc_increase): refactoring. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 39e1de45e5..fb3a1088d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +Thu Dec 5 13:47:15 2013 Koichi Sasada + + * gc.c (vm_malloc_size): added. + return malloc_usable_size() if possible. + + * gc.c (MALLOC_ALLOCATED_SIZE): add new setting macro to enable + GC.allocated_size. + If platform supports `malloc_usable_size()' (or similar one), + GC.allocated_size can be implemented with this function. + Default is 0. + + * gc.c (vm_xmalloc, vm_xrealloc, vm_xfree): use vm_malloc_size() + to detect collect allocated size. + + * gc.c (vm_malloc_increase): refactoring. + Thu Dec 5 13:19:03 2013 Aman Gupta * include/ruby/ruby.h: remove INTERNAL_EVENT_GC_END and replace with -- cgit v1.2.3