There are a few trivial typos in the HeapRegion class
size_t capacity() const { return byte_size(bottom(), end()); } // too much whitespace
inline size_t HeapRegion::block_size(const HeapWord *addr) const { // <-- "wrong" position of the *
size_t capacity() const { return byte_size(bottom(), end()); } // too much whitespace
inline size_t HeapRegion::block_size(const HeapWord *addr) const { // <-- "wrong" position of the *