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

Issue 1395803002: Stop holding onto TimelineEvents (Closed)

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

Stop holding onto TimelineEvents Due to the need to reclaim TimelineEventBlocks from the system, it is not safe to hold onto a TimelineEvent other than briefly to fill it out. - Switch TimelineDurationScope to emit two events (begin, end) instead of one duration event. - When setting duration arguments, hold them in the TimelineDurationScope and then emit them with the end event. The above two changes allows TimelineDurationScope to work without holding onto a TimelineEvent. To stop the block from being reclaimed while we are filling out an event, calls to StartEvent return with a lock held that is unlocked when CompleteEvent is called. - Update tests. R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/7137f9ef061c5b55a75e27b0018a2955c352bbd4

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -87 lines) Patch
M runtime/vm/dart.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/timeline.h View 1 2 9 chunks +51 lines, -64 lines 0 comments Download
M runtime/vm/timeline.cc View 1 2 9 chunks +204 lines, -15 lines 0 comments Download
M runtime/vm/timeline_test.cc View 5 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Cutch
5 years, 2 months ago (2015-10-08 14:16:54 UTC) #2
turnidge
lgtm w/ 1 idea https://codereview.chromium.org/1395803002/diff/20001/runtime/vm/timeline.cc File runtime/vm/timeline.cc (right): https://codereview.chromium.org/1395803002/diff/20001/runtime/vm/timeline.cc#newcode335 runtime/vm/timeline.cc:335: } Perhaps you could steal ...
5 years, 2 months ago (2015-10-08 17:59:19 UTC) #3
Cutch
https://codereview.chromium.org/1395803002/diff/20001/runtime/vm/timeline.cc File runtime/vm/timeline.cc (right): https://codereview.chromium.org/1395803002/diff/20001/runtime/vm/timeline.cc#newcode335 runtime/vm/timeline.cc:335: } On 2015/10/08 17:59:19, turnidge wrote: > Perhaps you ...
5 years, 2 months ago (2015-10-08 20:08:11 UTC) #4
Cutch
5 years, 2 months ago (2015-10-08 21:56:29 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
7137f9ef061c5b55a75e27b0018a2955c352bbd4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698