ruby-changes:33650
From: nari <ko1@a...>
Date: Mon, 28 Apr 2014 17:46:44 +0900 (JST)
Subject: [ruby-changes:33650] nari:r45731 (trunk): * gc.c: This argument must be a pointer.
nari 2014-04-28 17:46:36 +0900 (Mon, 28 Apr 2014) New Revision: 45731 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45731 Log: * gc.c: This argument must be a pointer. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45730) +++ ChangeLog (revision 45731) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Apr 28 17:42:42 2014 Narihiro Nakamura <authornari@g...> + + * gc.c: This argument must be a pointer. + Mon Apr 28 17:40:15 2014 Narihiro Nakamura <authornari@g...> * gc.c: Fix typos. These are undefined variables. Index: gc.c =================================================================== --- gc.c (revision 45730) +++ gc.c (revision 45731) @@ -6127,7 +6127,7 @@ objspace_malloc_increase(rb_objspace_t * https://github.com/ruby/ruby/blob/trunk/gc.c#L6127 rb_bug("objspace_malloc_increase: underflow malloc_params.allocated_size."); } #endif - atomic_sub_nounderflow(objspace->malloc_params.allocated_size, dec_size); + atomic_sub_nounderflow(&objspace->malloc_params.allocated_size, dec_size); } if (0) fprintf(stderr, "incraese - ptr: %p, type: %s, new_size: %d, old_size: %d\n", @@ -6145,7 +6145,7 @@ objspace_malloc_increase(rb_objspace_t * https://github.com/ruby/ruby/blob/trunk/gc.c#L6145 { size_t allocations = objspace->malloc_params.allocations; if (allocations > 0) { - atomic_sub_nounderflow(objspace->malloc_params.allocations, 1); + atomic_sub_nounderflow(&objspace->malloc_params.allocations, 1); } #if MALLOC_ALLOCATED_SIZE_CHECK else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/