Use module-prefixed naming scheme for tracking

objc block instead of shared id counter.
This commit is contained in:
Harold Brenes
2025-10-05 16:14:32 -04:00
parent 86f9c920da
commit e79e53dbbd
2 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ struct lbModule {
StringMap<lbAddr> objc_classes;
StringMap<lbAddr> objc_selectors;
StringMap<lbAddr> objc_ivars;
std::atomic<isize> objc_next_block_id; // Used to name objective-c blocks. IMPORTANT: Tracked on the main module
isize objc_next_block_id; // Used to name objective-c blocks. Tracked per module.
PtrMap<u64/*type hash*/, lbAddr> map_cell_info_map; // address of runtime.Map_Info
PtrMap<u64/*type hash*/, lbAddr> map_info_map; // address of runtime.Map_Cell_Info