Skip to content

Commit

Permalink
Fix int -> size_t api change. Might break some 64bits configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumpera committed Apr 18, 2012
1 parent c99c576 commit e001e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mono/metadata/sgen-alloc.c
Expand Up @@ -266,7 +266,7 @@ mono_gc_alloc_obj_nolock (MonoVTable *vtable, size_t size)
memset (p, 0, size);
}
} else {
int alloc_size = 0;
size_t alloc_size = 0;
if (TLAB_START)
DEBUG (3, fprintf (gc_debug_file, "Retire TLAB: %p-%p [%ld]\n", TLAB_START, TLAB_REAL_END, (long)(TLAB_REAL_END - TLAB_NEXT - size)));
sgen_nursery_retire_region (p, available_in_tlab);
Expand Down Expand Up @@ -379,7 +379,7 @@ mono_gc_try_alloc_obj_nolock (MonoVTable *vtable, size_t size)
if (nursery_clear_policy == CLEAR_AT_TLAB_CREATION)
memset (p, 0, size);
} else {
int alloc_size = 0;
size_t alloc_size = 0;

sgen_nursery_retire_region (p, available_in_tlab);
new_next = sgen_nursery_alloc_range (tlab_size, size, &alloc_size);
Expand Down

0 comments on commit e001e7f

Please sign in to comment.