projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ddf27
)
[NFC][Asan] Reorder bitfields
author
Vitaly Buka
<vitalybuka@google.com>
Tue, 15 Sep 2020 07:07:56 +0000
(
00:07
-0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Tue, 15 Sep 2020 07:08:01 +0000
(
00:08
-0700)
Depends on D87644.
Reviewed By: morehouse
Differential Revision: https://reviews.llvm.org/D87645
compiler-rt/lib/asan/asan_allocator.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/asan/asan_allocator.cpp
b/compiler-rt/lib/asan/asan_allocator.cpp
index
d136423
..
6daaacf
100644
(file)
--- a/
compiler-rt/lib/asan/asan_allocator.cpp
+++ b/
compiler-rt/lib/asan/asan_allocator.cpp
@@
-94,10
+94,10
@@
class ChunkHeader {
// align < 8 -> 0
// else -> log2(min(align, 512)) - 2
- u
16
user_requested_alignment_log : 3;
+ u
8
user_requested_alignment_log : 3;
private:
- u16 user_requested_size_hi
: 13
;
+ u16 user_requested_size_hi;
u32 user_requested_size_lo;
atomic_uint64_t alloc_context_id;