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

Issue 1314673008: Migrate logging infrastructure Isolate->Thread (Closed)

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

Migrate logging infrastructure Isolate->Thread This enables thread-safe logging (e.g., ISL_Print, which will soon be renamed to THR_Print), which is needed for concurrent marking (DetachCode) and compilation. Make finalization of GC marking tasks concurrent, now that it's thread-safe. BUG= R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/a1bc52730665aee36b3ba1dc72ab35f6e4fc44aa

Patch Set 1 #

Patch Set 2 : Comment renaming. #

Patch Set 3 : Finalize marking tasks in parallel, now that it's safe. #

Total comments: 22

Patch Set 4 : Add TODO regarding filtering. #

Total comments: 2

Patch Set 5 : Add Log::Current with filtering, make Thread::log simple accessor. #

Patch Set 6 : Fix test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -502 lines) Patch
M runtime/vm/ast_printer.cc View 1 2 3 21 chunks +93 lines, -93 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 27 chunks +36 lines, -36 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 15 chunks +42 lines, -42 lines 0 comments Download
M runtime/vm/compiler_stats.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/disassembler.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/disassembler.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_allocator.cc View 1 2 3 21 chunks +42 lines, -42 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 24 chunks +30 lines, -30 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 31 chunks +45 lines, -45 lines 0 comments Download
M runtime/vm/flow_graph_range_analysis.cc View 1 2 3 21 chunks +25 lines, -25 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/gc_marker.cc View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 3 4 5 chunks +13 lines, -13 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 3 chunks +2 lines, -5 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 chunks +4 lines, -27 lines 0 comments Download
M runtime/vm/locations.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/locations.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/log.h View 1 2 3 4 3 chunks +24 lines, -26 lines 0 comments Download
M runtime/vm/log.cc View 1 2 3 4 4 chunks +44 lines, -16 lines 0 comments Download
M runtime/vm/log_test.cc View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 19 chunks +36 lines, -36 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 4 10 chunks +10 lines, -10 lines 0 comments Download
M runtime/vm/stub_code.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/thread.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 4 4 chunks +10 lines, -1 line 1 comment Download
M runtime/vm/timeline_analysis.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
koda
5 years, 3 months ago (2015-09-08 16:21:39 UTC) #2
koda
Updated with addressing the related TODO in gc_marker (concurrent finalization of marking tasks). Let me ...
5 years, 3 months ago (2015-09-08 16:32:46 UTC) #3
Ivan Posva
First round of comments. -Ivan https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/isolate.cc#newcode702 runtime/vm/isolate.cc:702: log_(new class Log()), Why ...
5 years, 3 months ago (2015-09-08 21:22:22 UTC) #4
koda
Addressed comments, PTAL. https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/isolate.cc#newcode702 runtime/vm/isolate.cc:702: log_(new class Log()), On 2015/09/08 21:22:21, ...
5 years, 3 months ago (2015-09-09 00:26:57 UTC) #5
Ivan Posva
LGTM with discussed change. -Ivan https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/log.cc File runtime/vm/log.cc (right): https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/log.cc#newcode78 runtime/vm/log.cc:78: buffer_.TruncateTo(cursor); On 2015/09/09 00:26:57, ...
5 years, 3 months ago (2015-09-09 19:56:24 UTC) #6
koda
https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/log.cc File runtime/vm/log.cc (right): https://codereview.chromium.org/1314673008/diff/40001/runtime/vm/log.cc#newcode78 runtime/vm/log.cc:78: buffer_.TruncateTo(cursor); On 2015/09/09 19:56:24, Ivan Posva wrote: > On ...
5 years, 3 months ago (2015-09-09 22:22:57 UTC) #7
koda
Committed patchset #6 (id:100001) manually as a1bc52730665aee36b3ba1dc72ab35f6e4fc44aa (presubmit successful).
5 years, 3 months ago (2015-09-09 22:30:42 UTC) #8
Ivan Posva
5 years, 3 months ago (2015-09-10 15:40:32 UTC) #9
Message was sent while issue was closed.
Thanks for updating.

Just noticed a cosmetic issue, which can easily be fixed later...

-Ivan

https://codereview.chromium.org/1314673008/diff/100001/runtime/vm/thread.cc
File runtime/vm/thread.cc (right):

https://codereview.chromium.org/1314673008/diff/100001/runtime/vm/thread.cc#n...
runtime/vm/thread.cc:115: log_(new class Log()) {
Now we can drop the "class" here.

Powered by Google App Engine
This is Rietveld 408576698