ruby-changes:35491
From: normal <ko1@a...>
Date: Sat, 13 Sep 2014 15:18:06 +0900 (JST)
Subject: [ruby-changes:35491] normal:r47573 (trunk): class.c: use ALLOC(rb_subclass_entry_t)
normal 2014-09-13 15:17:58 +0900 (Sat, 13 Sep 2014) New Revision: 47573 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47573 Log: class.c: use ALLOC(rb_subclass_entry_t) It is easier to search for allocations by type. Modified files: trunk/ChangeLog trunk/class.c Index: ChangeLog =================================================================== --- ChangeLog (revision 47572) +++ ChangeLog (revision 47573) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Sep 13 15:16:31 2014 Eric Wong <e@8...> + + * class.c: use ALLOC(rb_subclass_entry_t) + Sat Sep 13 14:14:00 2014 Eric Wong <e@8...> * process.c (free_exec_arg): remove Index: class.c =================================================================== --- class.c (revision 47572) +++ class.c (revision 47573) @@ -42,7 +42,7 @@ rb_class_subclass_add(VALUE super, VALUE https://github.com/ruby/ruby/blob/trunk/class.c#L42 rb_subclass_entry_t *entry, *head; if (super && super != Qundef) { - entry = xmalloc(sizeof(*entry)); + entry = ALLOC(rb_subclass_entry_t); entry->klass = klass; entry->next = NULL; @@ -62,7 +62,7 @@ rb_module_add_to_subclasses_list(VALUE m https://github.com/ruby/ruby/blob/trunk/class.c#L62 { rb_subclass_entry_t *entry, *head; - entry = xmalloc(sizeof(*entry)); + entry = ALLOC(rb_subclass_entry_t); entry->klass = iclass; entry->next = NULL; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/