[compiler-rt] [tsan] Allow unloading of ignored libraries (PR #105660)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 16:47:58 PDT 2024


================
@@ -54,24 +54,51 @@ class LibIgnore {
     char *name;
     char *real_name;  // target of symlink
     bool loaded;
+    uptr ignored_code_range_id;
   };
 
   struct LibCodeRange {
     uptr begin;
     uptr end;
   };
 
+  // Marks a range as loaded by utilizing the least significant bit of the code
+  // range. Assumes the start of the code range is 2-byte aligned.
+  struct LibLoadedCodeRange {
+    uptr begin() const { return begin_ << 1; }
----------------
vitalybuka wrote:

Please remove begin(uptr) and replace with LibLoadedCodeRange(begin, end)

https://github.com/llvm/llvm-project/pull/105660


More information about the llvm-commits mailing list