Cleanup in preparation for mempool reference auditing feature in checked builds
author"Andi McClure ext:(%22) <andi.mcclure@xamarin.com>
Thu, 22 Oct 2015 18:15:33 +0000 (14:15 -0400)
committer"Andi McClure ext:(%22) <andi.mcclure@xamarin.com>
Thu, 22 Oct 2015 18:15:33 +0000 (14:15 -0400)
commit5fca9da6c7b549018c8d41f9fc476158784b4426
treed5291b5b27b0f6bff56e8554c16d7800b90c7482
parent587ae60d01d29a28763b72a497ec5221b5fc1435
Cleanup in preparation for mempool reference auditing feature in checked builds

- Rework in mempool.c: Have USE_MALLOC_FOR_MEMPOOLS work by tweaking existing rather than using an entire different path. Remove unused mempool field “rest”, stop assigning fields “pos” and “end” where unused. Removed unused function mono_mempool_empty. Fix off-by-one bug (>= vs >) in mono_mempool_contains_addr.
- Fix misc bug spotted by Rodrigo in aot-runtime.c: image of MonoGenericParam was always being set to corlib instead of proper image
- Add comments and replace inline constants with named constants in various places
mono/metadata/assembly.c
mono/metadata/image.c
mono/metadata/mempool.c
mono/metadata/mempool.h
mono/metadata/metadata-internals.h
mono/metadata/metadata.c
mono/mini/aot-runtime.c