projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #2488 from nealef/master
[mono.git]
/
mono
/
metadata
/
sgen-mono.c
diff --git
a/mono/metadata/sgen-mono.c
b/mono/metadata/sgen-mono.c
index d5ac48bc2f9b74728891f04d3fde5d0aa5812548..78fa394559af8e54e796f105d7125c320085abdd 100644
(file)
--- a/
mono/metadata/sgen-mono.c
+++ b/
mono/metadata/sgen-mono.c
@@
-1404,10
+1404,7
@@
create_allocator (int atype, gboolean slowpath)
int
mono_gc_get_aligned_size_for_allocator (int size)
{
- int aligned_size = size;
- aligned_size += SGEN_ALLOC_ALIGN - 1;
- aligned_size &= ~(SGEN_ALLOC_ALIGN - 1);
- return aligned_size;
+ return SGEN_ALIGN_UP (size);
}
/*