File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
// * Start of the shadow memory region is aligned to 2**kShadowBaseAlignment.
19
19
// * All stack ring buffers are located within (2**kShadowBaseAlignment)
20
20
// sized region below and adjacent to the shadow region.
21
- // * Each ring buffer has a size of (2**N)*4096 where N is in [0, 8 ), and is
21
+ // * Each ring buffer has a size of (2**N)*4096 where N is in [0, 7 ), and is
22
22
// aligned to twice its size. The value of N can be different for each buffer.
23
23
//
24
24
// These constrains guarantee that, given an address A of any element of the
@@ -55,7 +55,7 @@ static uptr RingBufferSize() {
55
55
uptr desired_bytes = flags ()->stack_history_size * sizeof (uptr);
56
56
// FIXME: increase the limit to 8 once this bug is fixed:
57
57
// https://bugs.llvm.org/show_bug.cgi?id=39030
58
- for (int shift = 1 ; shift < 7 ; ++shift) {
58
+ for (int shift = 0 ; shift < 7 ; ++shift) {
59
59
uptr size = 4096 * (1ULL << shift);
60
60
if (size >= desired_bytes)
61
61
return size;
You can’t perform that action at this time.
0 commit comments