Is it possible to walk all data defined in JITModule? I do put VM value constants there and some of them are need to be traced by GC (conservatively, I don't need data type info).
You can use module.declarations().get_data_objects()
to get a list of all data objects and then module.get_finalized_data()
to get the address. This will miss data references directly embeded in compiled functions (using eg iconst
of the pointer value) though, which may or may not be an issue for you.
bjorn3 said:
You can use
module.declarations().get_data_objects()
to get a list of all data objects and thenmodule.get_finalized_data()
to get the address. This will miss data references directly embeded in compiled functions (using egiconst
of the pointer value) though, which may or may not be an issue for you.
Thank you!
Last updated: Dec 23 2024 at 13:07 UTC