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

Issue 9632020: V8 crashes when profile generator is trying to allocate a raw_entries_ buffer more than 2Gb. (Closed)

Created:
8 years, 9 months ago by loislo
Modified:
8 years, 9 months ago
CC:
yurys, alexeif
Visibility:
Public.

Description

V8 crashes when profile generator allocates a buffer for HeapEntry'es bigger than 2Gb. BUG=none TEST=profile-generator tests

Patch Set 1 #

Total comments: 9

Patch Set 2 : NewArray was fixed #

Total comments: 5

Patch Set 3 : new define V8_SIZE_T_C was introduced for constants compatibility between x64, ia32 and x64 Win. #

Patch Set 4 : fixed problems with x64, ia32 etc. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -14 lines) Patch
M src/allocation.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/profile-generator.h View 1 2 3 chunks +6 lines, -6 lines 1 comment Download
M src/profile-generator.cc View 1 2 3 3 chunks +8 lines, -7 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
loislo
8 years, 9 months ago (2012-03-08 12:56:04 UTC) #1
mnaganov (inactive)
Please brush up issues with types used. https://chromiumcodereview.appspot.com/9632020/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9632020/diff/1/src/profile-generator.cc#newcode1102 src/profile-generator.cc:1102: return (uint64_t)sizeof(HeapEntry) ...
8 years, 9 months ago (2012-03-08 15:25:10 UTC) #2
alexeif
https://chromiumcodereview.appspot.com/9632020/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9632020/diff/1/src/profile-generator.cc#newcode1102 src/profile-generator.cc:1102: return (uint64_t)sizeof(HeapEntry) * entries_count // NOLINT There's no need ...
8 years, 9 months ago (2012-03-10 10:32:02 UTC) #3
loislo
alexeif comments addressed
8 years, 9 months ago (2012-03-11 10:14:13 UTC) #4
alexeif
https://chromiumcodereview.appspot.com/9632020/diff/5001/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9632020/diff/5001/src/profile-generator.cc#newcode1101 src/profile-generator.cc:1101: int retainers_count) { tabs? https://chromiumcodereview.appspot.com/9632020/diff/5001/src/profile-generator.cc#newcode3440 src/profile-generator.cc:3440: "Maximum snapshot size ...
8 years, 9 months ago (2012-03-11 11:15:59 UTC) #5
alexeif
https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generator.cc#newcode1124 src/profile-generator.cc:1124: static_cast<uint64_t>(6000) * MB; nit: V8_UINT64_C(6000)
8 years, 9 months ago (2012-03-11 14:30:04 UTC) #6
loislo
On 2012/03/11 14:30:04, alexeif wrote: > https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generator.cc > File src/profile-generator.cc (right): > > https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generator.cc#newcode1124 > ...
8 years, 9 months ago (2012-03-11 14:38:05 UTC) #7
mnaganov (inactive)
8 years, 9 months ago (2012-03-11 14:43:57 UTC) #8
LGTM

https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generator.h
File src/profile-generator.h (right):

https://chromiumcodereview.appspot.com/9632020/diff/5005/src/profile-generato...
src/profile-generator.h:580: size_t EntrySize() { return EntriesSize(1,
children_count_, retainers_count_); }
nit: 80 chars

Powered by Google App Engine
This is Rietveld 408576698