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 #900 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git]
/
mono
/
metadata
/
sgen-gc.h
diff --git
a/mono/metadata/sgen-gc.h
b/mono/metadata/sgen-gc.h
index 15afdbcd03a2cd0f150b30b519127ada45bf40da..126f561ca7eca0a5fa42907f5f6dc7e977bec28a 100644
(file)
--- a/
mono/metadata/sgen-gc.h
+++ b/
mono/metadata/sgen-gc.h
@@
-233,6
+233,8
@@
extern int num_ready_finalizers;
#define SGEN_ALLOC_ALIGN 8
#define SGEN_ALLOC_ALIGN_BITS 3
+/* s must be non-negative */
+#define SGEN_CAN_ALIGN_UP(s) ((s) <= SIZE_MAX - (SGEN_ALLOC_ALIGN - 1))
#define SGEN_ALIGN_UP(s) (((s)+(SGEN_ALLOC_ALIGN-1)) & ~(SGEN_ALLOC_ALIGN-1))
/*