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

Issue 2672833003: Fix for issue #28606. Removed loop which iterated over all threads in the thread registry to check … (Closed)

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

Description

Fix for issue #28606. Removed loop which iterated over all threads in the thread registry to check if a handle is valid and replaced it with a single check with the current thread. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/2a20b0433d64ee3dec7ed69b1fb57d2b148910c8

Patch Set 1 #

Total comments: 4

Patch Set 2 : Removed Mutex from PersistentHandles #

Total comments: 2

Patch Set 3 : Fix for issue #28606. Removed loop which iterated over all threads in the thread registry to check … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -15 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/thread_registry.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/thread_registry.cc View 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
bkonyi
https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_impl.cc#newcode543 runtime/vm/dart_api_impl.cc:543: return Thread::Current()->IsValidHandle(handle) || I wasn't able to reproduce the ...
3 years, 10 months ago (2017-02-02 22:22:34 UTC) #3
bkonyi
3 years, 10 months ago (2017-02-02 22:22:35 UTC) #4
bkonyi
https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_state.h#newcode459 runtime/vm/dart_api_state.h:459: mutex_(new Mutex()), On 2017/02/02 22:22:34, bkonyi wrote: > It ...
3 years, 10 months ago (2017-02-02 22:43:04 UTC) #6
Cutch
lgtm
3 years, 10 months ago (2017-02-02 22:44:19 UTC) #7
siva
https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/2672833003/diff/1/runtime/vm/dart_api_state.h#newcode459 runtime/vm/dart_api_state.h:459: mutex_(new Mutex()), On 2017/02/02 22:22:34, bkonyi wrote: > It ...
3 years, 10 months ago (2017-02-02 22:51:13 UTC) #8
bkonyi
https://codereview.chromium.org/2672833003/diff/20001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/2672833003/diff/20001/runtime/vm/dart_api_impl.cc#newcode543 runtime/vm/dart_api_impl.cc:543: return Thread::Current()->IsValidHandle(handle) || On 2017/02/02 22:51:13, siva wrote: > ...
3 years, 10 months ago (2017-02-02 23:08:49 UTC) #9
bkonyi
3 years, 10 months ago (2017-02-02 23:09:14 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
2a20b0433d64ee3dec7ed69b1fb57d2b148910c8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698