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

Issue 2281193002: Treat background finalization as another GC task so it won't run in parallel with the marker. (Closed)

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

Description

Treat background finalization as another GC task so it won't run in parallel with the marker. Prevents a race between the marker and finalizer when the handle is freed (fixes #27029). Disallow creating weak handles for immediate objects. We don't distinguish these from free handles, so their callbacks are never run. Don't report freed handles over the vm service. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/e46b3cd99471fef0f6fadc464e66d000f38d70ea

Patch Set 1 #

Total comments: 6

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -70 lines) Patch
M runtime/vm/dart_api_impl.cc View 2 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 17 chunks +53 lines, -39 lines 0 comments Download
M runtime/vm/dart_api_state.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/heap.h View 2 chunks +0 lines, -7 lines 0 comments Download
M runtime/vm/heap.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M runtime/vm/isolate.cc View 1 chunk +4 lines, -14 lines 0 comments Download
M runtime/vm/service.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
rmacnak
4 years, 3 months ago (2016-08-26 19:31:09 UTC) #2
siva
LGTM with some comments. https://codereview.chromium.org/2281193002/diff/1/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): https://codereview.chromium.org/2281193002/diff/1/runtime/vm/dart_api_impl_test.cc#newcode2427 runtime/vm/dart_api_impl_test.cc:2427: OS::Sleep(10); Why is this sleep ...
4 years, 3 months ago (2016-08-29 22:05:09 UTC) #3
rmacnak
https://codereview.chromium.org/2281193002/diff/1/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): https://codereview.chromium.org/2281193002/diff/1/runtime/vm/dart_api_impl_test.cc#newcode2427 runtime/vm/dart_api_impl_test.cc:2427: OS::Sleep(10); On 2016/08/29 22:05:09, siva wrote: > Why is ...
4 years, 3 months ago (2016-08-29 23:09:45 UTC) #4
rmacnak
4 years, 3 months ago (2016-08-29 23:48:01 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e46b3cd99471fef0f6fadc464e66d000f38d70ea (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698