diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-28 08:46:36 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-28 08:46:36 +0000 |
commit | ec0cfc3a3193a5015dbc7e0b07980e00f2b2bfd9 (patch) | |
tree | 6a8d6df579bc37537d9a7d52a79ac707a815e2f9 /gc.c | |
parent | 6ee891d6a7cb2278f43c5da3590939a548587682 (diff) | |
download | ruby-ec0cfc3a3193a5015dbc7e0b07980e00f2b2bfd9.tar.gz |
* gc.c: This argument must be a pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6127,7 +6127,7 @@ objspace_malloc_increase(rb_objspace_t *objspace, void *mem, size_t new_size, si 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 *objspace, void *mem, size_t new_size, si { 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 { |