Closed
Description
In GitLab by @qinsoon on Jan 30, 2020, 14:03
Currently MMTk is initialized with a set of default options. Options are mutable and the VM can use process(name, value)
to send options to MMTk.
According to our discussion, these are clear:
- For command line arguments (such as
-X:gc
), MMTk expects the VM to send them as a string at initialization. And those are immutable. - MMTk also allows mutable options. VM can call certain APIs to set some options during execution, these options may change MMTk's behaviours.
For mutable options, as we are supposed to have multiple readers but one writer to the options, we could consider using lock-free data structures, such as https://github.com/jonhoo/rust-evmap.