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

Issue 1181013016: Subzero. Fixes memory leaks. (Closed)

Created:
5 years, 6 months ago by John
Modified:
5 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero. Fixes memory leaks. Adds named constructors to initialzers. Removes destructor from Inst. BUG= None R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=1bec8bcd64da0cd4855a357d740d3ad45bbef3b9

Patch Set 1 #

Patch Set 2 : Introduces Ice::makeUnique. #

Patch Set 3 : Uses Ice::makeUnique for creating VariableDeclaration::initializers. #

Patch Set 4 : Invokes the non-trivial destructors for objects allocated with GlobalContext::allocate<T>. #

Patch Set 5 : Eliminates profiler-related leaks. #

Patch Set 6 : Eliminates GlobalDeclaration leaks. #

Patch Set 7 : clang-format: for f in $(git diff --name-only HEAD~7); do if [[ ${f} == *h || ${f} == *cpp ]]; then… #

Total comments: 10

Patch Set 8 : Addresses codereview comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -205 lines) Patch
M src/IceCfg.cpp View 1 2 3 4 5 6 3 chunks +11 lines, -10 lines 0 comments Download
M src/IceConverter.cpp View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M src/IceDefs.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M src/IceELFSection.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 4 5 6 7 6 chunks +35 lines, -5 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 6 6 chunks +25 lines, -9 lines 0 comments Download
M src/IceGlobalInits.h View 1 2 3 4 5 6 7 13 chunks +67 lines, -39 lines 0 comments Download
M src/IceGlobalInits.cpp View 1 2 3 4 5 3 chunks +6 lines, -20 lines 0 comments Download
M src/IceInst.h View 1 2 3 4 5 6 26 chunks +5 lines, -27 lines 0 comments Download
M src/IceInstARM32.h View 1 2 3 4 5 6 20 chunks +8 lines, -20 lines 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 5 6 45 chunks +15 lines, -47 lines 0 comments Download
M src/IceOperand.h View 1 2 3 4 5 6 6 chunks +0 lines, -7 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 5 6 6 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
John
This is a big CL dealing with several sources of memory leaks in subzero. It ...
5 years, 6 months ago (2015-06-19 17:59:54 UTC) #4
Jim Stichnoth
btw, Variable contains a std::vector with a nontrivial dtor but the vector allocates its storage ...
5 years, 6 months ago (2015-06-19 23:09:25 UTC) #5
John
https://codereview.chromium.org/1181013016/diff/160001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/1181013016/diff/160001/src/IceDefs.h#newcode126 src/IceDefs.h:126: } // namespace Internal On 2015/06/19 23:09:25, stichnot wrote: ...
5 years, 6 months ago (2015-06-20 00:10:34 UTC) #6
Jim Stichnoth
lgtm https://codereview.chromium.org/1181013016/diff/160001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/1181013016/diff/160001/src/IceGlobalContext.h#newcode222 src/IceGlobalContext.h:222: typename std::enable_if<std::is_trivially_destructible<T>::value, T>::type * On 2015/06/20 00:10:33, John ...
5 years, 6 months ago (2015-06-21 00:15:49 UTC) #7
John
5 years, 6 months ago (2015-06-22 17:51:31 UTC) #8
Message was sent while issue was closed.
Committed patchset #8 (id:180001) manually as
1bec8bcd64da0cd4855a357d740d3ad45bbef3b9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698