[compiler-rt] 6bff092 - [TSan][NFC] fixup for comment of Shadow

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 11:16:36 PST 2022


Author: Vitaly Buka
Date: 2022-02-23T11:16:25-08:00
New Revision: 6bff092e3ed4ae1f21b290f88cf7152cb331aa48

URL: https://github.com/llvm/llvm-project/commit/6bff092e3ed4ae1f21b290f88cf7152cb331aa48
DIFF: https://github.com/llvm/llvm-project/commit/6bff092e3ed4ae1f21b290f88cf7152cb331aa48.diff

LOG: [TSan][NFC] fixup for comment of Shadow

There should be 1-bit unused field between tid field and is_atomic field of Shadow.

Reviewed By: dvyukov, vitalybuka

Differential Revision: https://reviews.llvm.org/D119417

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl-old/tsan_shadow.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl-old/tsan_shadow.h b/compiler-rt/lib/tsan/rtl-old/tsan_shadow.h
index 8b7bc341713e8..566584fd3203a 100644
--- a/compiler-rt/lib/tsan/rtl-old/tsan_shadow.h
+++ b/compiler-rt/lib/tsan/rtl-old/tsan_shadow.h
@@ -94,6 +94,7 @@ class FastState {
 // Shadow (from most significant bit):
 //   freed           : 1
 //   tid             : kTidBits
+//   unused          : 1
 //   is_atomic       : 1
 //   is_read         : 1
 //   size_log        : 2


        


More information about the llvm-commits mailing list