Skip to content

Commit

Permalink
Ensure MemoryHeader is a POD.
Browse files Browse the repository at this point in the history
Also get rid of the union because its sole purpose (assign one field, read
another) is undefined behavior in C++.

We define MemoryFlags as a single machine word type instead of using a struct
of bitfields for the reasons given in the code comment.
brixen committed Jul 25, 2016
1 parent 0c24d04 commit 80d617d
Showing 2 changed files with 492 additions and 113 deletions.
Loading

0 comments on commit 80d617d

Please sign in to comment.