mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6ee891d6a7
commit
ec0cfc3a31
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Apr 28 17:42:42 2014 Narihiro Nakamura <authornari@gmail.com>
|
||||||
|
|
||||||
|
* gc.c: This argument must be a pointer.
|
||||||
|
|
||||||
Mon Apr 28 17:40:15 2014 Narihiro Nakamura <authornari@gmail.com>
|
Mon Apr 28 17:40:15 2014 Narihiro Nakamura <authornari@gmail.com>
|
||||||
|
|
||||||
* gc.c: Fix typos. These are undefined variables.
|
* gc.c: Fix typos. These are undefined variables.
|
||||||
|
|
4
gc.c
4
gc.c
|
@ -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.");
|
rb_bug("objspace_malloc_increase: underflow malloc_params.allocated_size.");
|
||||||
}
|
}
|
||||||
#endif
|
#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",
|
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;
|
size_t allocations = objspace->malloc_params.allocations;
|
||||||
if (allocations > 0) {
|
if (allocations > 0) {
|
||||||
atomic_sub_nounderflow(objspace->malloc_params.allocations, 1);
|
atomic_sub_nounderflow(&objspace->malloc_params.allocations, 1);
|
||||||
}
|
}
|
||||||
#if MALLOC_ALLOCATED_SIZE_CHECK
|
#if MALLOC_ALLOCATED_SIZE_CHECK
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue