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

Issue 1648313002: [ABANDONED] Reland Issue 1629703002 (Closed)

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

Description

Reland of [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr. (patchset #1 id:1 of https://codereview.chromium.org/1650013002/ ) Reason for revert: Relanding patch set with fix. Original issue's description: > Revert of [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr. (patchset #5 id:80001 of https://codereview.chromium.org/1629703002/ ) > > Reason for revert: > Breaks ninja build on Linux GN. > > Original issue's description: > > [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr. > > > > Previously naked pointers AssemblyProgram and EncodedProgram are used over the > > place, and are deallocated using Delete{AssemblyProgram, EncodedProgram}(). > > In this CL we use scoped_ptr to manage the life cycles of these objects. > > > > - Removed DeleteAssemblyProgram() and DeleteEncodedProgram() and replaced calls > > with e.g., program.reset(nullptr); if the manual deallocation is a peak > > memory optimization. > > - Moved Encode() and ReadEncodedProgram() to the .h files matching the .cc files. > > - Extracted DetectExecutableType() and ParseDetectedExecutable() from > > disassembly.* to new files program_detector*c, since Disassembly is really an > > implementation that caller's don't care about. > > > > Committed: https://crrev.com/0a9cbf1781a114b35a4e0f4a834f2d24ade2e917 > > Cr-Commit-Position: refs/heads/master@{#372212} > > TBR=wfh@chromium.org,grt@chromium.org,huangs@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > > Committed: https://crrev.com/7958406fb94ffb798859006fef04dbd0d4164079 > Cr-Commit-Position: refs/heads/master@{#372274} TBR=wfh@chromium.org,grt@chromium.org,dcheng@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -303 lines) Patch
M courgette/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M courgette/adjustment_method_unittest.cc View 4 chunks +30 lines, -23 lines 0 comments Download
M courgette/assembly_program.h View 3 chunks +9 lines, -2 lines 0 comments Download
M courgette/assembly_program.cc View 7 chunks +22 lines, -28 lines 0 comments Download
M courgette/courgette.h View 2 chunks +1 line, -35 lines 0 comments Download
M courgette/courgette.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M courgette/courgette_tool.cc View 9 chunks +44 lines, -37 lines 0 comments Download
M courgette/disassembler.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M courgette/encode_decode_unittest.cc View 3 chunks +16 lines, -11 lines 0 comments Download
M courgette/encoded_program.h View 2 chunks +7 lines, -0 lines 0 comments Download
M courgette/encoded_program.cc View 4 chunks +10 lines, -14 lines 0 comments Download
M courgette/encoded_program_fuzz_unittest.cc View 5 chunks +17 lines, -15 lines 0 comments Download
M courgette/encoded_program_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M courgette/ensemble.cc View 2 chunks +1 line, -3 lines 0 comments Download
M courgette/patch_generator_x86_32.h View 4 chunks +23 lines, -27 lines 0 comments Download
M courgette/patcher_x86_32.h View 3 chunks +12 lines, -14 lines 0 comments Download
A courgette/program_detector.h View 1 chunk +43 lines, -0 lines 0 comments Download
A courgette/program_detector.cc View 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
huangs
Created Reland of [Courgette] Refactor: Manage AssemblyProgram and EncodedProgram with scoped_ptr.
4 years, 10 months ago (2016-01-29 15:44:23 UTC) #1
huangs
Getting weird patch failures on try bots: Failed to apply patch for courgette/BUILD.gn: While running ...
4 years, 10 months ago (2016-01-29 16:51:32 UTC) #2
Will Harris
On 2016/01/29 16:51:32, huangs wrote: > Getting weird patch failures on try bots: > > ...
4 years, 10 months ago (2016-01-29 17:58:53 UTC) #3
huangs
Ah okay. I figured if they bothered to have code insert "Reland" then this is ...
4 years, 10 months ago (2016-01-29 18:00:38 UTC) #4
huangs
Looks like the failure was on weird bots that fail to patch. I'm going to: ...
4 years, 10 months ago (2016-01-29 18:59:07 UTC) #5
grt (UTC plus 2)
4 years, 10 months ago (2016-01-29 21:10:37 UTC) #6
On 2016/01/29 18:59:07, huangs wrote:
> Looks like the failure was on weird bots that fail to patch.  I'm going to:
> - Delete https://codereview.chromium.org/1648393002 
> - Keep this CL around as abandoned.
> - Fix the the original CL.

Please check the "Closed" box on this CR's edit page so that it's clear to
reviewers that it's been abandoned. Thanks!

Powered by Google App Engine
This is Rietveld 408576698