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

Issue 2995543004: [vm, gc] Require a safepoint for heap iteration. (Closed)

Created:
3 years, 4 months ago by rmacnak
Modified:
3 years, 4 months ago
Reviewers:
danunez, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[vm, gc] Require a safepoint for heap iteration. Assert a safepoint operation can only be started from a thread in the VM state. Fix several unit tests missing a native-to-vm transition. R=asiva@google.com, danunez@google.com Committed: https://github.com/dart-lang/sdk/commit/466385ceb6cb03835d5e860e6aeff689e62fd5a0

Patch Set 1 #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : explicit-thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -123 lines) Patch
M runtime/vm/become.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/benchmark_test.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/vm/class_table.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/clustered_snapshot.cc View 1 2 3 1 chunk +12 lines, -9 lines 0 comments Download
M runtime/vm/compiler_stats.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/heap.h View 1 2 3 2 chunks +15 lines, -8 lines 0 comments Download
M runtime/vm/heap.cc View 1 2 3 6 chunks +42 lines, -21 lines 0 comments Download
M runtime/vm/isolate.h View 2 chunks +2 lines, -7 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 2 chunks +2 lines, -13 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/vm/object_graph.cc View 1 2 3 11 chunks +10 lines, -15 lines 0 comments Download
M runtime/vm/object_graph_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M runtime/vm/pages.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/profiler.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M runtime/vm/profiler_test.cc View 49 chunks +54 lines, -3 lines 0 comments Download
M runtime/vm/runtime_entry.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/safepoint.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/safepoint.cc View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/scavenger.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/stack_frame_test.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M runtime/vm/symbols.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 5 chunks +19 lines, -9 lines 0 comments Download
M runtime/vm/verifier.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
rmacnak
3 years, 4 months ago (2017-08-04 23:39:24 UTC) #2
danunez
https://codereview.chromium.org/2995543004/diff/20001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2995543004/diff/20001/runtime/vm/clustered_snapshot.cc#newcode5355 runtime/vm/clustered_snapshot.cc:5355: iteration.IterateObjects(&token_streams_counter); It looks like this version will collect token ...
3 years, 4 months ago (2017-08-05 17:24:12 UTC) #3
rmacnak
https://codereview.chromium.org/2995543004/diff/20001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2995543004/diff/20001/runtime/vm/clustered_snapshot.cc#newcode5355 runtime/vm/clustered_snapshot.cc:5355: iteration.IterateObjects(&token_streams_counter); On 2017/08/05 17:24:11, danunez wrote: > It looks ...
3 years, 4 months ago (2017-08-07 22:37:51 UTC) #4
danunez
lgtm
3 years, 4 months ago (2017-08-07 22:57:47 UTC) #5
siva
lgtm https://codereview.chromium.org/2995543004/diff/40001/runtime/vm/heap.h File runtime/vm/heap.h (right): https://codereview.chromium.org/2995543004/diff/40001/runtime/vm/heap.h#newcode370 runtime/vm/heap.h:370: explicit HeapIterationScope(bool writable = false); Why not add ...
3 years, 4 months ago (2017-08-07 23:28:38 UTC) #6
rmacnak
https://codereview.chromium.org/2995543004/diff/40001/runtime/vm/heap.h File runtime/vm/heap.h (right): https://codereview.chromium.org/2995543004/diff/40001/runtime/vm/heap.h#newcode370 runtime/vm/heap.h:370: explicit HeapIterationScope(bool writable = false); On 2017/08/07 23:28:38, siva ...
3 years, 4 months ago (2017-08-08 00:29:41 UTC) #7
rmacnak
3 years, 4 months ago (2017-08-08 00:51:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
466385ceb6cb03835d5e860e6aeff689e62fd5a0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698