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

Issue 9594020: Fix the heap profiler crash caused by memory layout changes between passes. (Closed)

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

Description

Fix the heap profiler crash caused by memory layout changes between passes. The heap profiler randomly crashed because of memory corruption caused by unexpected heap objects layout changes occured between count and fill passes. The changes lead the number of retainers counted on the first pass did not match its number on the fill pass leading to the out of bounds array access. Besides that the mark bit scheme has been changed to a plain vector one in dominators building algorithm. It is up to 4x faster because of smaller memory access footprint. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=10928

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -45 lines) Patch
M src/profile-generator.h View 3 chunks +3 lines, -0 lines 0 comments Download
M src/profile-generator.cc View 11 chunks +69 lines, -45 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
alexeif
Hi Misha, Could you please take a look. Thank you!
8 years, 9 months ago (2012-03-05 15:17:16 UTC) #1
mnaganov (inactive)
Thanks for digging into this issue! Please sort out GenerateSnapshot sequence and you are done. ...
8 years, 9 months ago (2012-03-05 16:21:58 UTC) #2
alexeif
https://chromiumcodereview.appspot.com/9594020/diff/1/src/profile-generator.cc File src/profile-generator.cc (left): https://chromiumcodereview.appspot.com/9594020/diff/1/src/profile-generator.cc#oldcode1674 src/profile-generator.cc:1674: } else if (object->IsJSGlobalObject()) { On 2012/03/05 16:21:58, Mikhail ...
8 years, 9 months ago (2012-03-05 17:35:31 UTC) #3
mnaganov (inactive)
8 years, 9 months ago (2012-03-05 18:02:56 UTC) #4
Thanks for explanations!

LGTM, I'm submitting.

Powered by Google App Engine
This is Rietveld 408576698