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

Issue 1562853003: 1. Add code to grow the heap instead of collecting garbage in Heap::AllocateOld when allocation is … (Closed)

Created:
4 years, 11 months ago by siva
Modified:
4 years, 11 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

1. Add code to grow the heap instead of collecting garbage in Heap::AllocateOld when allocation is done by a non mutator thread which is at a safepoint. Garbage collection is triggered after the safepoint is done. 2. Add code to avoid multiple garbage collection requests on different threads to sync up and allow only one request to proceed at a time, other requests wait for this garbage collection request to be done and then proceed to allocation once the request is done. R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/a0fedf387973d19db2cf0eecb3096fe80c970c8d

Patch Set 1 #

Patch Set 2 : self-review-comments #

Total comments: 6

Patch Set 3 : address-code-review-comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -117 lines) Patch
M runtime/vm/compiler.cc View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
M runtime/vm/heap.h View 1 4 chunks +18 lines, -8 lines 0 comments Download
M runtime/vm/heap.cc View 1 2 8 chunks +138 lines, -101 lines 0 comments Download
M runtime/vm/thread.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
siva
4 years, 11 months ago (2016-01-06 20:32:47 UTC) #3
Ivan Posva
LGTM -ip https://codereview.chromium.org/1562853003/diff/20001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1562853003/diff/20001/runtime/vm/compiler.cc#newcode1064 runtime/vm/compiler.cc:1064: // We do not Garbage collect during ...
4 years, 11 months ago (2016-01-11 06:14:10 UTC) #4
siva
https://codereview.chromium.org/1562853003/diff/20001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1562853003/diff/20001/runtime/vm/compiler.cc#newcode1064 runtime/vm/compiler.cc:1064: // We do not Garbage collect during this stage ...
4 years, 11 months ago (2016-01-11 18:27:47 UTC) #5
siva
4 years, 11 months ago (2016-01-11 19:01:03 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
a0fedf387973d19db2cf0eecb3096fe80c970c8d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698