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

Issue 1250463004: Migrate NoSafepointScope; add constrained concurrent allocation to unit test (Closed)

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

Description

Migrate NoSafepointScope to Thread, so that helper threads can successfully call Heap::Allocate (but only for old space). Safepointing is not yet implemented, so helper threads can only allocate when growth control is off and no Dart code is running. But extend unit test to ensure this code path remains exercised as more functionality is added. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/fc8286ae7131eebb02075f12daa84c0b1dd4abcb

Patch Set 1 #

Patch Set 2 : Growth control assertions, test unique string visiting. #

Patch Set 3 : Access isolate via thread. #

Patch Set 4 : Ready for review. #

Total comments: 4

Patch Set 5 : Assert current thread is mutator; add shared assertion macro. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -70 lines) Patch
M runtime/vm/base_isolate.h View 2 chunks +2 lines, -30 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 5 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/heap.cc View 1 5 chunks +15 lines, -7 lines 0 comments Download
M runtime/vm/heap_test.cc View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/object.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/object_graph.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 4 16 chunks +22 lines, -16 lines 0 comments Download
M runtime/vm/thread.h View 2 chunks +23 lines, -0 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 3 chunks +22 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
koda
5 years, 5 months ago (2015-07-21 21:58:54 UTC) #3
siva
lgtm https://codereview.chromium.org/1250463004/diff/60001/runtime/vm/raw_object_snapshot.cc File runtime/vm/raw_object_snapshot.cc (right): https://codereview.chromium.org/1250463004/diff/60001/runtime/vm/raw_object_snapshot.cc#newcode2062 runtime/vm/raw_object_snapshot.cc:2062: ASSERT(Thread::Current()->no_safepoint_scope_depth() != 0); Should this be reader->isolate()->mutator_thread()->no_safepoint_scope_depth() != ...
5 years, 5 months ago (2015-07-22 17:52:49 UTC) #4
koda
https://codereview.chromium.org/1250463004/diff/60001/runtime/vm/raw_object_snapshot.cc File runtime/vm/raw_object_snapshot.cc (right): https://codereview.chromium.org/1250463004/diff/60001/runtime/vm/raw_object_snapshot.cc#newcode2062 runtime/vm/raw_object_snapshot.cc:2062: ASSERT(Thread::Current()->no_safepoint_scope_depth() != 0); On 2015/07/22 17:52:49, siva wrote: > ...
5 years, 5 months ago (2015-07-22 19:55:47 UTC) #5
koda
5 years, 5 months ago (2015-07-22 22:09:58 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
fc8286ae7131eebb02075f12daa84c0b1dd4abcb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698