summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-15 00:09:27 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-15 00:09:27 +0000
commit8c7010895d36deda2c745de330298724dba39dd4 (patch)
tree7060b020b00e2c8ccfcd4b3c46a22499f23530d7
parent1b49feddf7fa50021fee7444ce34300f0d629c2b (diff)
parent1afbc971fdf90c3e3226ed7aa6b73f20478829ed (diff)
downloadextras-android12L-platform-release.tar.gz
Change-Id: I9d59b593b099a6cec9dd1d31149a3646900ccb2b
-rw-r--r--simpleperf/RecordReadThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/RecordReadThread.cpp b/simpleperf/RecordReadThread.cpp
index 16af9292..a8229303 100644
--- a/simpleperf/RecordReadThread.cpp
+++ b/simpleperf/RecordReadThread.cpp
@@ -540,7 +540,7 @@ void RecordReadThread::PushRecordToRecordBuffer(KernelRecordReader* kernel_recor
// space in each sample to store stack data. However, a thread may use less stack than 64K.
// So not all the 64K stack data in a sample is valid, and we only need to keep valid stack
// data, whose size is dyn_stack_size.
- uint64_t new_stack_size = std::min<uint64_t>(dyn_stack_size, stack_size_limit);
+ uint64_t new_stack_size = Align(std::min<uint64_t>(dyn_stack_size, stack_size_limit), 8);
if (stack_size > new_stack_size) {
// Remove part of the stack data.
perf_event_header new_header = header;