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

Issue 1792603006: Revert of [Courgette] Clean up Disassembler; fix ELF Memory leaks. (Closed)

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

Description

Revert of [Courgette] Clean up Disassembler; fix ELF Memory leaks. (patchset #15 id:270001 of https://codereview.chromium.org/1676683002/ ) Reason for revert: Regressed linux sizes (iostream maybe?) https://build.chromium.org/p/chromium/builders/Linux/builds/72899/steps/sizes/logs/stdio Original issue's description: > [Courgette] Clean up Disassembler; fix ELF Memory leaks. > > Cleaning up code surrounding Disassembler: > - Extract AddressTranslator interface to be used across subclasses. > - Use FileOffset = size_t by context. > - Detailed comments & TODOs in DisassemblerElf32ARM. > - Fix DisassemblerElf32ARM memory leaks. > - Lots of superficial stylistic changes. > > Except for AddressTranslator routines and unit tests, shying away > from control flow and logic changes. > > BUG=579206 > > Committed: https://crrev.com/58b822d441f5c982e879e536fa3c1cbac8fd339a > Cr-Commit-Position: refs/heads/master@{#380881} TBR=grt@chromium.org,wfh@chromium.org,chrisha@chromium.org,andrewhayden@chromium.org,huangs@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=579206 Committed: https://crrev.com/4a95ca5a4bab60f9f54325036516b640d263e2ec Cr-Commit-Position: refs/heads/master@{#380885}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+920 lines, -922 lines) Patch
M courgette/disassembler.h View 2 chunks +16 lines, -18 lines 0 comments Download
M courgette/disassembler.cc View 2 chunks +5 lines, -15 lines 0 comments Download
M courgette/disassembler_elf_32.h View 5 chunks +69 lines, -62 lines 0 comments Download
M courgette/disassembler_elf_32.cc View 17 chunks +202 lines, -177 lines 0 comments Download
M courgette/disassembler_elf_32_arm.h View 2 chunks +23 lines, -33 lines 0 comments Download
M courgette/disassembler_elf_32_arm.cc View 15 chunks +110 lines, -148 lines 0 comments Download
M courgette/disassembler_elf_32_x86.h View 2 chunks +25 lines, -21 lines 0 comments Download
M courgette/disassembler_elf_32_x86.cc View 6 chunks +57 lines, -58 lines 0 comments Download
M courgette/disassembler_elf_32_x86_unittest.cc View 4 chunks +37 lines, -46 lines 0 comments Download
M courgette/disassembler_win32_x64.h View 5 chunks +53 lines, -25 lines 0 comments Download
M courgette/disassembler_win32_x64.cc View 18 chunks +118 lines, -112 lines 0 comments Download
M courgette/disassembler_win32_x64_unittest.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M courgette/disassembler_win32_x86.h View 5 chunks +50 lines, -25 lines 0 comments Download
M courgette/disassembler_win32_x86.cc View 15 chunks +114 lines, -110 lines 0 comments Download
M courgette/disassembler_win32_x86_unittest.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M courgette/image_utils.h View 1 chunk +1 line, -37 lines 0 comments Download
M courgette/rel32_finder_win32_x86.h View 4 chunks +14 lines, -6 lines 0 comments Download
M courgette/rel32_finder_win32_x86.cc View 5 chunks +16 lines, -14 lines 0 comments Download
M courgette/rel32_finder_win32_x86_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
scottmg
Created Revert of [Courgette] Clean up Disassembler; fix ELF Memory leaks.
4 years, 9 months ago (2016-03-12 23:54:19 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1792603006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1792603006/1
4 years, 9 months ago (2016-03-12 23:54:31 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-12 23:55:12 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4a95ca5a4bab60f9f54325036516b640d263e2ec Cr-Commit-Position: refs/heads/master@{#380885}
4 years, 9 months ago (2016-03-12 23:56:57 UTC) #6
Will Harris
two new static initializers it seems?
4 years, 9 months ago (2016-03-13 01:19:06 UTC) #7
huangs
4 years, 9 months ago (2016-03-13 16:38:49 UTC) #8
Message was sent while issue was closed.
Yeah I included <iostream> in {disassembler_win32_x86.cc,
disassembler_win32_x64.cc} for "#if COURGETTE_HISTOGRAM_TARGETS" debug flow.
I didn't place he #include in an #if block for uniformity, but should do that.

Will run tools/linux/dump-static-initializers.py before and after change to
verify.

Powered by Google App Engine
This is Rietveld 408576698