Free memory allocated for code and data segments of compiled functions. # Safety Because this function invalidates any pointers retrieved from the corresponding module, it should only be used when none of the functions from that module are currently executing and none of the `fn` pointers are called afterwards.
(mut self)
| 190 | /// from that module are currently executing and none of the `fn` pointers |
| 191 | /// are called afterwards. |
| 192 | pub unsafe fn free_memory(mut self) { |
| 193 | self.memory.free_memory(); |
| 194 | } |
| 195 | |
| 196 | fn lookup_symbol(&self, name: &str) -> Option<*const u8> { |
| 197 | match self.symbols.borrow_mut().entry(name.to_owned()) { |