Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 1900223002: [Courgette] Make ELF section header sorting less intrusive. (Closed)

Created:
4 years, 8 months ago by huangs
Modified:
4 years, 8 months ago
Reviewers:
Will Harris
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Courgette] Make ELF section header sorting less intrusive. Recently we start to sort ELF section headers by file offset. However, directly sorting the section headers is intrusive because it scrambles section ids (order in array). This CL adds a layer of section id lookup, so we can visit section headers in file offset order without affecting section ids. Also updated tests. BUG=604542 Committed: https://crrev.com/691893008b56e5aea1fde29519988249b26de1c9 Cr-Commit-Position: refs/heads/master@{#388290}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -21 lines) Patch
M courgette/disassembler_elf_32.h View 1 chunk +8 lines, -2 lines 0 comments Download
M courgette/disassembler_elf_32.cc View 4 chunks +23 lines, -17 lines 0 comments Download
M courgette/disassembler_elf_32_x86_unittest.cc View 4 chunks +23 lines, -2 lines 4 comments Download

Messages

Total messages: 17 (7 generated)
huangs
This bug indirectly blocks the 25% peak RAM reduction effort due to inconsistent results for ...
4 years, 8 months ago (2016-04-19 18:24:27 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900223002/1
4 years, 8 months ago (2016-04-19 18:25:07 UTC) #4
Will Harris
https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc File courgette/disassembler_elf_32_x86_unittest.cc (right): https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc#newcode35 courgette/disassembler_elf_32_x86_unittest.cc:35: EXPECT_EQ(static_cast<size_t>(SectionHeaderCount()), file_offsets.size()); brackets in wrong place?
4 years, 8 months ago (2016-04-19 18:36:35 UTC) #6
huangs
PTAL. https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc File courgette/disassembler_elf_32_x86_unittest.cc (right): https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc#newcode35 courgette/disassembler_elf_32_x86_unittest.cc:35: EXPECT_EQ(static_cast<size_t>(SectionHeaderCount()), file_offsets.size()); I looked carefully, looks alright. static_cast<>() ...
4 years, 8 months ago (2016-04-19 19:02:53 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 19:25:06 UTC) #9
Will Harris
lgtm https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc File courgette/disassembler_elf_32_x86_unittest.cc (right): https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc#newcode35 courgette/disassembler_elf_32_x86_unittest.cc:35: EXPECT_EQ(static_cast<size_t>(SectionHeaderCount()), file_offsets.size()); On 2016/04/19 19:02:53, huangs wrote: > ...
4 years, 8 months ago (2016-04-19 19:44:25 UTC) #10
huangs
Thanks. Committing! https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc File courgette/disassembler_elf_32_x86_unittest.cc (right): https://codereview.chromium.org/1900223002/diff/1/courgette/disassembler_elf_32_x86_unittest.cc#newcode35 courgette/disassembler_elf_32_x86_unittest.cc:35: EXPECT_EQ(static_cast<size_t>(SectionHeaderCount()), file_offsets.size()); On 2016/04/19 19:44:25, Will Harris ...
4 years, 8 months ago (2016-04-19 19:59:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900223002/1
4 years, 8 months ago (2016-04-19 20:00:18 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-19 20:04:47 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:36 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/691893008b56e5aea1fde29519988249b26de1c9
Cr-Commit-Position: refs/heads/master@{#388290}

Powered by Google App Engine
This is Rietveld 408576698