MMTk currently assumes that the page size is known at bootimage building time. This design is wrong. It is incorrect to consider the page size a bootimage build time constant. It is a constant at runtime but we cannot possibly build it into the bootimage.
To solve this problem, some parts of MMTk need to be redesigned. For example, the constructors of some Space classes use constants that indirectly depend on the page size. Moreover, the nursery options assume that the page size is known.