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

Issue 8555024: - Avoid allocating variable length arrays on the stack. (Closed)

Created:
9 years, 1 month ago by Ivan Posva
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Avoid allocating variable length arrays on the stack. - Fix C++ warning about copying vtables. - Use correct delete for PortMap entries. Committed: https://code.google.com/p/dart/source/detail?r=1538

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M bin/process_linux.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M bin/process_macos.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M vm/globals.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M vm/port.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
9 years, 1 month ago (2011-11-15 16:24:34 UTC) #1
Mads Ager (google)
LGTM, thanks Ivan!
9 years, 1 month ago (2011-11-15 17:26:26 UTC) #2
tobyr
http://codereview.chromium.org/8555024/diff/3001/bin/process_linux.cc File bin/process_linux.cc (right): http://codereview.chromium.org/8555024/diff/3001/bin/process_linux.cc#newcode209 bin/process_linux.cc:209: delete program_arguments; Shouldn't this (and below) also be delete[]? ...
9 years, 1 month ago (2011-11-15 17:41:16 UTC) #3
Ivan Posva
9 years, 1 month ago (2011-11-15 17:47:01 UTC) #4
Thanks! Fixed.

-Ivan

http://codereview.chromium.org/8555024/diff/3001/bin/process_linux.cc
File bin/process_linux.cc (right):

http://codereview.chromium.org/8555024/diff/3001/bin/process_linux.cc#newcode209
bin/process_linux.cc:209: delete program_arguments;
On 2011/11/15 17:41:16, tobyr wrote:
> Shouldn't this (and below) also be delete[]? Ditto for process_macos.cc.

Done.

Powered by Google App Engine
This is Rietveld 408576698