mmtk-core icon indicating copy to clipboard operation
mmtk-core copied to clipboard

Edge trait

Open wks opened this issue 3 years ago • 0 comments

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

wks avatar Jun 02 '22 07:06 wks