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

Issue 48127: Introducing a new StrNDup function that uses new[] for when we dispose the re... (Closed)

Created:
11 years, 9 months ago by olehougaard
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Introducing a new StrNDup function that uses new[] for when we dispose the result using delete[]. Committed: http://code.google.com/p/v8/source/detail?r=1532

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M src/allocation.h View 1 chunk +4 lines, -3 lines 0 comments Download
M src/allocation.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M src/d8-readline.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
olehougaard
11 years, 9 months ago (2009-03-18 12:15:17 UTC) #1
Søren Thygesen Gjesse
11 years, 9 months ago (2009-03-18 12:26:15 UTC) #2
LGTM

How about getting rid of OS::StrDup and OS::StrNDup alltogether? I think this
change removed the only use of OS::StrNDup and OS::StrDup is only used in a few
tests.

Powered by Google App Engine
This is Rietveld 408576698