CodeManager cleanup: (mono/mono#16468)
authorJay Krell <jaykrell@microsoft.com>
Tue, 27 Aug 2019 08:40:35 +0000 (01:40 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 27 Aug 2019 08:40:35 +0000 (10:40 +0200)
commitbc09b522decb1f6cf8d8b81d4bdb67fb39a30869
treef5105332bb9e0a87bb73ba8f39b8b4caaf21f48f
parent1d7f10719b19f8f67f1515e60dead612301adcbf
CodeManager cleanup: (mono/mono#16468)

- Chunks do not need flags, only codemanagers do.
 - Sort by size to minimize padding for alignment.
 - Booleans only need one bit.
 - Chunk is not spelled chunck.
 - Suggest foo accessors be named foo() and set_foo(), not get_foo() and set_foo().
   i.e. the more common "get" is implied.
- Allow free(0) w/o initialization.

Commit migrated from https://github.com/mono/mono/commit/6cf8b6e73824545709cf6556726e0460bc7e2558
src/mono/mono/utils/mono-codeman.c