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

Issue 8509003: Limit length of strings copied into a heap snapshot (Closed)

Created:
9 years, 1 month ago by loislo
Modified:
9 years, 1 month ago
CC:
Vyacheslav Egorov (Chromium)
Visibility:
Public.

Description

A page created a number of ConsStrings that refer to one big string. Each such string requires small amount of heap memory. Heap snapshot generator copies all the strings into internal hash map for future use. The each copy requires much more memory than original v8 string. I made a workaround for this. The snapshot will copy only first 1024 symbols. A simple drive-by fix was made for a performance problem in ToCString implementation. BUG=v8:1816 TEST=none Committed: http://code.google.com/p/v8/source/detail?r=9928

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments addressed #

Patch Set 3 : length type was changed: uint32_t -> int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -16 lines) Patch
M src/objects.cc View 1 2 chunks +7 lines, -13 lines 0 comments Download
M src/profile-generator.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/profile-generator.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
loislo
9 years, 1 month ago (2011-11-09 10:11:11 UTC) #1
mnaganov (inactive)
On 2011/11/09 10:11:11, loislo wrote: Overall is good, please fix comments. In the description, please ...
9 years, 1 month ago (2011-11-09 11:45:10 UTC) #2
mnaganov (inactive)
http://codereview.chromium.org/8509003/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/8509003/diff/1/src/objects.cc#newcode5832 src/objects.cc:5832: character_position++; This can be moved up into the loop ...
9 years, 1 month ago (2011-11-09 11:45:23 UTC) #3
loislo
comments addressed
9 years, 1 month ago (2011-11-09 11:56:06 UTC) #4
mnaganov (inactive)
9 years, 1 month ago (2011-11-09 12:07:33 UTC) #5
On 2011/11/09 11:56:06, loislo wrote:
> comments addressed

LGTM, I'll land.

Powered by Google App Engine
This is Rietveld 408576698