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

Issue 1282423003: Enable iterating over roots from helper threads by moving stack walking. (Closed)

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

Enable iterating over roots from helper threads by moving stack walking. This will be needed for helper threads to invoke GC. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/faaf60801f72d7397cb6a87f54f2470e69a9a427

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -19 lines) Patch
M runtime/vm/heap.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M runtime/vm/isolate.cc View 1 chunk +0 lines, -8 lines 1 comment Download
M runtime/vm/pages.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/pages.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/thread.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/thread_registry.h View 2 chunks +14 lines, -3 lines 1 comment Download
M runtime/vm/thread_test.cc View 1 chunk +3 lines, -2 lines 1 comment Download

Messages

Total messages: 6 (2 generated)
koda
5 years, 4 months ago (2015-08-11 16:04:41 UTC) #2
Cutch
lgtm
5 years, 4 months ago (2015-08-11 16:07:13 UTC) #3
koda
Committed patchset #1 (id:1) manually as faaf60801f72d7397cb6a87f54f2470e69a9a427 (presubmit successful).
5 years, 4 months ago (2015-08-11 16:41:10 UTC) #4
Ivan Posva
5 years, 4 months ago (2015-08-11 17:41:31 UTC) #6
Message was sent while issue was closed.
Please fix.

-Ivan

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/isolate.cc
File runtime/vm/isolate.cc (left):

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/isolate.cc#oldco...
runtime/vm/isolate.cc:1602: StackFrameIterator frames_iterator(validate_frames);
Can you please explain how we are validating frames after this change?

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/thread_registry.h
File runtime/vm/thread_registry.h (right):

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/thread_registry....
runtime/vm/thread_registry.h:130: StackFrameIterator frames_iterator(efi,
false);
Please do not use explicit constants and use the appropriately named constant
StackFrameIterator::kDontValidateFrames.

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/thread_test.cc
File runtime/vm/thread_test.cc (right):

https://codereview.chromium.org/1282423003/diff/1/runtime/vm/thread_test.cc#n...
runtime/vm/thread_test.cc:138: /* validate_frames = */ true);
ditto

Powered by Google App Engine
This is Rietveld 408576698