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

Issue 677043002: Flush code faster when doing emergency GCs.

Created:
6 years, 2 months ago by Erik Corry Chromium.org
Modified:
6 years, 2 months ago
Reviewers:
ulan, rmcilroy
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Flush code faster when doing emergency GCs. R=ulan@chromium.org BUG=

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change ReleaseUnoptimizedCode test to a harder test that fails without this CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -25 lines) Patch
M src/heap/heap.h View 5 chunks +22 lines, -1 line 0 comments Download
M src/heap/heap.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M src/heap/heap-inl.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/heap/mark-compact.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 5 chunks +5 lines, -10 lines 0 comments Download
M test/cctest/test-heap.cc View 1 5 chunks +65 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Erik Corry Chromium.org
6 years, 2 months ago (2014-10-24 10:57:32 UTC) #1
Erik Corry Chromium.org
This is a revival of https://codereview.chromium.org/10933124/ from 2 years ago.
6 years, 2 months ago (2014-10-24 11:00:59 UTC) #2
ulan
Hi Erik, If I understand correctly, this flushes all flushable code including active code. This ...
6 years, 2 months ago (2014-10-24 11:18:57 UTC) #4
rmcilroy
Nice, it's always nice when a 2 year old CL comes back :). LGTM, but ...
6 years, 2 months ago (2014-10-24 11:46:07 UTC) #5
rmcilroy
On 2014/10/24 11:18:57, ulan wrote: > Hi Erik, > > If I understand correctly, this ...
6 years, 2 months ago (2014-10-24 11:48:02 UTC) #6
ulan
6 years, 2 months ago (2014-10-24 11:55:44 UTC) #7
On 2014/10/24 11:48:02, rmcilroy wrote:
> On 2014/10/24 11:18:57, ulan wrote:
> > Hi Erik,
> > 
> > If I understand correctly, this flushes all flushable code including active
> > code. This could lead to recompile/flush cycles and could actually increase
> > memory usage because of fragmentation in code space.
> 
> Would this not happen currently for an emergency GC?  Presumably the
code-aging
> would get triggered 7 times during the 7 GCs, which would end up making the
code
> old before the end of the 7 GCs?

7 is the upper bound, we can stop earlier if there are no more pending weak
handles.
I checked few websites (gmail, google plus, google maps), and there low memory
notification triggers 2-3 GCs.

Powered by Google App Engine
This is Rietveld 408576698