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: Nov 22 2024 at 17:03 UTC