Copy from https://github.com/authorNari/g1gc-impl-book