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

Issue 7891005: Fixing parallel execution in d8 (with -p) and some memory leaks. (Closed)

Created:
9 years, 3 months ago by Yang
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fixing parallel execution in d8 (with -p) and some memory leaks. Committed: http://code.google.com/p/v8/source/detail?r=9262

Patch Set 1 #

Total comments: 8

Patch Set 2 : Applied suggestions. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -63 lines) Patch
M src/d8.h View 1 3 chunks +10 lines, -2 lines 0 comments Download
M src/d8.cc View 1 16 chunks +63 lines, -61 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Yang
PTAL.
9 years, 3 months ago (2011-09-13 10:57:10 UTC) #1
Jakob Kummerow
Looks pretty good, just a few comments. http://codereview.chromium.org/7891005/diff/1/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7891005/diff/1/src/d8.cc#newcode930 src/d8.cc:930: ShellThread(int no, ...
9 years, 3 months ago (2011-09-13 11:55:11 UTC) #2
fschneider
drive-by: http://codereview.chromium.org/7891005/diff/1/src/d8.h File src/d8.h (right): http://codereview.chromium.org/7891005/diff/1/src/d8.h#newcode197 src/d8.h:197: if (parallel_files != NULL) delete[] parallel_files; Same here. ...
9 years, 3 months ago (2011-09-13 12:08:57 UTC) #3
Yang
Applied suggestions and switched to SmartArrayPointer in one occasion. Take another look please.
9 years, 3 months ago (2011-09-13 12:52:19 UTC) #4
Jakob Kummerow
9 years, 3 months ago (2011-09-13 13:08:03 UTC) #5
LGTM if you address the comment below:

http://codereview.chromium.org/7891005/diff/4001/src/d8.cc
File src/d8.cc (right):

http://codereview.chromium.org/7891005/diff/4001/src/d8.cc#newcode1226
src/d8.cc:1226: i::SmartArrayPointer<char> files;
This will delete the contents of |files| when it goes out of scope at the end of
the loop. You should change back to plain pointers here (or use files.Detach()
in the method call below, but IMHO using plain pointers here is easier).

Powered by Google App Engine
This is Rietveld 408576698