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

Issue 11547: Make sure to not mix allocators by using the correct StrDup function. (Closed)

Created:
12 years, 1 month ago by iposva
Modified:
9 years, 3 months ago
Reviewers:
Feng Qian
CC:
v8-dev
Visibility:
Public.

Description

- Make sure to not mix allocators by using the correct StrDup function. - Include needed system header. Committed: http://code.google.com/p/v8/source/detail?r=812

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/d8.cc View 2 chunks +3 lines, -1 line 1 comment Download

Messages

Total messages: 2 (0 generated)
iposva
12 years, 1 month ago (2008-11-20 23:17:48 UTC) #1
Feng Qian
12 years, 1 month ago (2008-11-20 23:33:28 UTC) #2
LGTM, see comments.

http://codereview.chromium.org/11547/diff/1/2
File src/d8.cc (right):

http://codereview.chromium.org/11547/diff/1/2#newcode82
Line 82: return i::SmartPointer<char>(str ? i::StrDup(str) : str);
The fix looks good to me, but it does not resolve the confusion between
i::StrDup and i::OS::StrDup. Please file a  bug.

Powered by Google App Engine
This is Rietveld 408576698