mmtk / mmtk-core

Memory Management ToolKit
https://www.mmtk.io
Other
379 stars 69 forks source link

Introduce MockVM #1049

Closed qinsoon closed 11 months ago

qinsoon commented 11 months ago

This PR introduces MockVM, a type that implements VMBinding and allows users to control the behavior of each method for testing. This PR also moves all the tests in the current DummyVM to MockVM, and removes the current DummyVM.

This PR closes https://github.com/mmtk/mmtk-core/issues/99. Note that the current MockVM implementation does not allow changing constants or associated types in VMBinding -- I would suggest we create another issue to track this problem.

Changes: