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

Issue 1161603006: Take into account freed global handles and fragmentation when computing heap growing factor. (Closed)

Created:
5 years, 6 months ago by ulan
Modified:
5 years, 1 month ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Take into account freed global handles and fragmentation when computing heap growing factor. BUG=chromium:493636 LOG=NO

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Address comments #

Patch Set 4 : Fixes #

Patch Set 5 : Adjust factor #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -43 lines) Patch
M src/heap/heap.h View 1 2 1 chunk +29 lines, -2 lines 1 comment Download
M src/heap/heap.cc View 1 2 3 4 4 chunks +90 lines, -41 lines 2 comments Download

Messages

Total messages: 5 (1 generated)
ulan
PTAL
5 years, 6 months ago (2015-06-01 16:15:46 UTC) #2
Hannes Payer (out of office)
nice! https://codereview.chromium.org/1161603006/diff/20001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1161603006/diff/20001/src/heap/heap.cc#newcode1294 src/heap/heap.cc:1294: fragmentation_percent >= kLowFragmentationPercent; Can we move this code ...
5 years, 6 months ago (2015-06-02 08:23:00 UTC) #3
ulan
https://codereview.chromium.org/1161603006/diff/20001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1161603006/diff/20001/src/heap/heap.cc#newcode1294 src/heap/heap.cc:1294: fragmentation_percent >= kLowFragmentationPercent; On 2015/06/02 08:23:00, Hannes Payer wrote: ...
5 years, 6 months ago (2015-06-02 12:27:05 UTC) #4
Hannes Payer (out of office)
5 years, 6 months ago (2015-06-03 06:32:58 UTC) #5
https://codereview.chromium.org/1161603006/diff/80001/src/heap/heap.cc
File src/heap/heap.cc (right):

https://codereview.chromium.org/1161603006/diff/80001/src/heap/heap.cc#newcod...
src/heap/heap.cc:1262:
FragmentationOfCompactedSpacesInPercent(&total_committed);
Can we have a separate function which returns total committed compacted space
memory?

https://codereview.chromium.org/1161603006/diff/80001/src/heap/heap.cc#newcod...
src/heap/heap.cc:5450: 
This function needs more comments about the magic that is going on here :)

https://codereview.chromium.org/1161603006/diff/80001/src/heap/heap.h
File src/heap/heap.h (right):

https://codereview.chromium.org/1161603006/diff/80001/src/heap/heap.h#newcode...
src/heap/heap.h:1194: return 100 - static_cast<int>(100.0 * live / committed);
committed should never be 0 in current v8, but can we still check?

Powered by Google App Engine
This is Rietveld 408576698