Commit 0e987ea
committed
[scudo] Small cleanup of memory tagging code part 2.
Make the systemSupportsMemoryTagging() function return even
on system that don't support memory tagging. This avoids the
need to always check if memory tagging is supported before
calling the function.
Modify iterateOverChunks() to call useMemoryTagging<>(Options) to
determine if mte is supported. This already uses the cached check
of systemSupportsMemoryTagging() rather than directly calling
that function.
Updated the code that calls systemSupportsMemoryTagging().1 parent f969694 commit 0e987ea
File tree
4 files changed
+7
-12
lines changed- compiler-rt/lib/scudo/standalone
- tests
4 files changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
689 | 688 | | |
690 | 689 | | |
691 | 690 | | |
692 | | - | |
693 | | - | |
694 | | - | |
| 691 | + | |
| 692 | + | |
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
698 | 696 | | |
699 | 697 | | |
700 | 698 | | |
701 | | - | |
| 699 | + | |
702 | 700 | | |
703 | 701 | | |
704 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
| 264 | + | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
0 commit comments