We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91a0a2 commit dfaa144Copy full SHA for dfaa144
compiler-rt/lib/hwasan/hwasan_thread_list.h
@@ -55,6 +55,9 @@ static uptr RingBufferSize() {
55
uptr desired_bytes = flags()->stack_history_size * sizeof(uptr);
56
// FIXME: increase the limit to 8 once this bug is fixed:
57
// https://bugs.llvm.org/show_bug.cgi?id=39030
58
+ // Note that we *cannot* do that on Android, as the runtime will indefinitely
59
+ // have to support code that is compiled with ashr, which only works with
60
+ // shifts up to 6.
61
for (int shift = 0; shift < 7; ++shift) {
62
uptr size = 4096 * (1ULL << shift);
63
if (size >= desired_bytes)
0 commit comments