[compiler-rt] dfaa144 - [NFC] [HWASan] clarify FIXME comment (#87689)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 12:55:08 PDT 2024
Author: Florian Mayer
Date: 2024-04-04T12:55:05-07:00
New Revision: dfaa144d0ca15839d1d11af472a4b7e2d2c6b7ec
URL: https://github.com/llvm/llvm-project/commit/dfaa144d0ca15839d1d11af472a4b7e2d2c6b7ec
DIFF: https://github.com/llvm/llvm-project/commit/dfaa144d0ca15839d1d11af472a4b7e2d2c6b7ec.diff
LOG: [NFC] [HWASan] clarify FIXME comment (#87689)
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_thread_list.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_thread_list.h b/compiler-rt/lib/hwasan/hwasan_thread_list.h
index f36d27864fc207..369a1c3d6f5fd7 100644
--- a/compiler-rt/lib/hwasan/hwasan_thread_list.h
+++ b/compiler-rt/lib/hwasan/hwasan_thread_list.h
@@ -55,6 +55,9 @@ static uptr RingBufferSize() {
uptr desired_bytes = flags()->stack_history_size * sizeof(uptr);
// FIXME: increase the limit to 8 once this bug is fixed:
// https://bugs.llvm.org/show_bug.cgi?id=39030
+ // Note that we *cannot* do that on Android, as the runtime will indefinitely
+ // have to support code that is compiled with ashr, which only works with
+ // shifts up to 6.
for (int shift = 0; shift < 7; ++shift) {
uptr size = 4096 * (1ULL << shift);
if (size >= desired_bytes)
More information about the llvm-commits
mailing list