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

Issue 2701013002: Resolution for issue #28746: changed order in which locks/flags are grabbed in MallocHooks to preve… (Closed)

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

Description

Resolution for issue #28746: changed order in which locks/flags are grabbed in MallocHooks to prevent race where a MallocHookScope tries to set the flag but MallocHookScope::TearDown deletes it before it has the opportunity to. BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/b59cca17e7e1fb59667e172f32fd74ca9933f533

Patch Set 1 #

Total comments: 4

Patch Set 2 : Resolution for issue #28746: changed order in which locks/flags are grabbed in MallocHooks to preve… #

Total comments: 7

Patch Set 3 : Resolution for issue #28746: changed order in which locks/flags are grabbed in MallocHooks to preve… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M runtime/vm/malloc_hooks.cc View 1 2 4 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
bkonyi
3 years, 10 months ago (2017-02-17 18:34:50 UTC) #2
zra
https://codereview.chromium.org/2701013002/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2701013002/diff/1/runtime/vm/malloc_hooks.cc#newcode275 runtime/vm/malloc_hooks.cc:275: MutexLocker ml(MallocHooksState::malloc_hook_mutex()); I think taking the log and checking ...
3 years, 10 months ago (2017-02-17 18:41:02 UTC) #3
bkonyi
https://codereview.chromium.org/2701013002/diff/1/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2701013002/diff/1/runtime/vm/malloc_hooks.cc#newcode275 runtime/vm/malloc_hooks.cc:275: MutexLocker ml(MallocHooksState::malloc_hook_mutex()); On 2017/02/17 18:41:02, zra wrote: > I ...
3 years, 10 months ago (2017-02-17 21:15:11 UTC) #4
zra
https://codereview.chromium.org/2701013002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2701013002/diff/20001/runtime/vm/malloc_hooks.cc#newcode237 runtime/vm/malloc_hooks.cc:237: MallocHooksState::TearDown(); !MallocHooksState::Active() implies !MallocHookScope::Active(), so there is no need ...
3 years, 10 months ago (2017-02-17 21:29:53 UTC) #5
zra
lgtm https://codereview.chromium.org/2701013002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2701013002/diff/20001/runtime/vm/malloc_hooks.cc#newcode64 runtime/vm/malloc_hooks.cc:64: static bool Active() { rm
3 years, 10 months ago (2017-02-17 21:42:26 UTC) #6
bkonyi
3 years, 10 months ago (2017-02-17 21:49:21 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
b59cca17e7e1fb59667e172f32fd74ca9933f533 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698