mmtk-core
mmtk-core copied to clipboard
Add a simple implementation for find_object_from_internal_pointer
This PR adds a function to our API find_object_from_internal_pointer
. It uses a simple implementation with is_vo_bit_set_for_addr
which is not efficient.
An efficient implementation should be able to bulk load side metadata, check the last bit set and deduce the data address from the bit. However, there are many corner cases for this that I haven't sorted out, and it would need more testing before we can make it ready. I think it might be a good idea to have the API first with a naive implementation which works. We can optimize it later.