mmtk-core
mmtk-core copied to clipboard
Edge trait
We make the representation of edges VM-specific. The MMTk core only depends on the abstract Edge trait. This allows VM bindings to custom the behaviour of loading/storing of edges, and support features like compressed OOPs.
This PR is still experimental.
Some example Edge implementations are in vmbindings/dummyvm/src/edges.rs. There is a test case vmbindings/dummyvm/src/tests/edges_test.rs to show what to expect.
See also:
- Tracking issue: https://github.com/mmtk/mmtk-core/issues/573
- OpenJDK: https://github.com/mmtk/mmtk-openjdk/pull/160