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

Issue 3327021: Attempt to collect more garbage before panicking with out of memory. (Closed)

Created:
10 years, 3 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Attempt to collect more garbage before panicking with out of memory. Currently weak handles retain an object for another GC round (oftem times, major GC round.) Instrumenting Chromium shows that navigation leaves many global objects which are only collected in next go. Let's attempt to collect more garbage when approacing OOM condition. Committed: http://code.google.com/p/v8/source/detail?r=5455

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressing Slava's comments #

Total comments: 7

Patch Set 3 : And another round #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -45 lines) Patch
M src/global-handles.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/global-handles.cc View 3 chunks +4 lines, -1 line 0 comments Download
M src/heap.h View 1 2 2 chunks +18 lines, -5 lines 0 comments Download
M src/heap.cc View 1 2 8 chunks +54 lines, -36 lines 1 comment Download
M src/heap-inl.h View 1 2 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
antonm
Slava, may you have a look?
10 years, 3 months ago (2010-09-13 14:14:44 UTC) #1
Vyacheslav Egorov (Chromium)
Nice idea Anton. LGTM. http://codereview.chromium.org/3327021/diff/1/3 File src/global-handles.h (right): http://codereview.chromium.org/3327021/diff/1/3#newcode99 src/global-handles.h:99: static bool PostGarbageCollectionProcessing(); Document a ...
10 years, 3 months ago (2010-09-13 16:07:10 UTC) #2
antonm
Thanks a lot for comments, Slava. May you have second look? http://codereview.chromium.org/3327021/diff/1/3 File src/global-handles.h (right): ...
10 years, 3 months ago (2010-09-13 18:26:06 UTC) #3
Vyacheslav Egorov (Chromium)
Still LGTM except for the piece with retry &= ... http://codereview.chromium.org/3327021/diff/7001/8004 File src/heap.cc (right): http://codereview.chromium.org/3327021/diff/7001/8004#newcode700 ...
10 years, 3 months ago (2010-09-14 08:31:45 UTC) #4
antonm
hopefully we're getting closer http://codereview.chromium.org/3327021/diff/7001/8004 File src/heap.cc (right): http://codereview.chromium.org/3327021/diff/7001/8004#newcode700 src/heap.cc:700: // handle callback, we reran ...
10 years, 3 months ago (2010-09-14 16:48:04 UTC) #5
Vyacheslav Egorov (Chromium)
LGTM!
10 years, 3 months ago (2010-09-14 17:07:03 UTC) #6
Vyacheslav Egorov (Chromium)
10 years, 3 months ago (2010-09-14 17:08:42 UTC) #7
small remark

http://codereview.chromium.org/3327021/diff/14001/15004
File src/heap.cc (right):

http://codereview.chromium.org/3327021/diff/14001/15004#newcode738
src/heap.cc:738: { DisableAssertNoAllocation allow_allocation;
Empty line before this one might help readability.

Powered by Google App Engine
This is Rietveld 408576698