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

Issue 1289153002: Add test of full GC on helper thread (Closed)

Created:
5 years, 4 months ago by koda
Modified:
5 years, 4 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

Add unit test to ensure that we can execute a full GC on a thread other than the main mutator. (For now, the main mutator waits manually, since the GC does not yet safepoint.) Adding this unit test ensures that we do not add any new code to the dependencies of the GC that assumes the current thread is the main mutator. * Equip helper threads with a store buffer automatically, just like for the main thread. * Share code by refactoring flushing. BUG= R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/655df891fc2d37f8ba67dd2374cf846a294473e9

Patch Set 1 #

Patch Set 2 : Store buffer flushing, add TODO. #

Patch Set 3 : Comments. #

Total comments: 6

Patch Set 4 : Address comments. #

Total comments: 8

Patch Set 5 : Add comments, use Acquire method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -25 lines) Patch
M runtime/vm/heap.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M runtime/vm/thread.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 4 6 chunks +29 lines, -18 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
koda
5 years, 4 months ago (2015-08-14 01:03:23 UTC) #2
Ivan Posva
https://codereview.chromium.org/1289153002/diff/40001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1289153002/diff/40001/runtime/vm/thread.cc#newcode203 runtime/vm/thread.cc:203: const bool kCheckThreshold = false; // Prevent scheduling another ...
5 years, 4 months ago (2015-08-14 22:15:29 UTC) #3
koda
PTAL https://codereview.chromium.org/1289153002/diff/40001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1289153002/diff/40001/runtime/vm/thread.cc#newcode203 runtime/vm/thread.cc:203: const bool kCheckThreshold = false; // Prevent scheduling ...
5 years, 4 months ago (2015-08-17 15:51:07 UTC) #4
Ivan Posva
LGTM with comments. -Ivan https://codereview.chromium.org/1289153002/diff/60001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1289153002/diff/60001/runtime/vm/thread.cc#newcode201 runtime/vm/thread.cc:201: void Thread::PrepareForGC() { Is there ...
5 years, 4 months ago (2015-08-18 00:28:01 UTC) #5
koda
https://codereview.chromium.org/1289153002/diff/60001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1289153002/diff/60001/runtime/vm/thread.cc#newcode201 runtime/vm/thread.cc:201: void Thread::PrepareForGC() { On 2015/08/18 00:28:00, Ivan Posva wrote: ...
5 years, 4 months ago (2015-08-18 14:21:35 UTC) #6
koda
5 years, 4 months ago (2015-08-18 14:23:21 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
655df891fc2d37f8ba67dd2374cf846a294473e9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698